Dockersupport for Web

main
joerg 2023-06-25 23:37:47 +02:00
parent 39a69d8441
commit 71b0483868
2 changed files with 29 additions and 0 deletions

8
Dockerfile 100644
View File

@ -0,0 +1,8 @@
FROM nginx:latest
COPY devops/nginx.conf /etc/nginx/
COPY build/web /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

21
devops/nginx.conf 100644
View File

@ -0,0 +1,21 @@
# on alpine, copy to /etc/nginx/nginx.conf
user root;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile off;
access_log off;
keepalive_timeout 3000;
server {
listen 8080;
root /usr/share/nginx/html;
index index.html;
server_name localhost;
client_max_body_size 16m;
}
}