add dockerfile

This commit is contained in:
Thomas Amland 2020-08-07 19:28:28 +02:00
parent d5e9dc719d
commit c5b714ab5e
2 changed files with 26 additions and 0 deletions

6
docker/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM nginx:alpine
EXPOSE 80
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY dist/ /var/www/html/

20
docker/nginx.conf Normal file
View File

@ -0,0 +1,20 @@
gzip on;
gzip_proxied any;
gzip_vary on;
gzip_buffers 16 8k;
gzip_types *;
server {
listen 80;
server_name localhost;
root /var/www/html;
location / {
root /var/www/html;
try_files $uri /index.html;
}
location = /index.html {
add_header 'Cache-Control' 'no-cache';
}
}