Dockerfile & nginx config for static files

This commit is contained in:
2023-11-04 15:53:51 +01:00
parent be04ec2756
commit 5e011a61f8
2 changed files with 27 additions and 0 deletions

6
Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM nginx:alpine
WORKDIR /app
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./build .

21
nginx.conf Normal file
View File

@@ -0,0 +1,21 @@
events {
worker_connections 1024;
}
http {
include mime.types;
sendfile on;
server {
listen 80;
listen [::]:80;
autoindex off;
server_name _;
server_tokens off;
root /app/;
gzip_static on;
}
}