From 71b0483868d4edb774d809075e28e5b725fc8919 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 25 Jun 2023 23:37:47 +0200 Subject: [PATCH] Dockersupport for Web --- Dockerfile | 8 ++++++++ devops/nginx.conf | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 Dockerfile create mode 100644 devops/nginx.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8110eb5 --- /dev/null +++ b/Dockerfile @@ -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;"] \ No newline at end of file diff --git a/devops/nginx.conf b/devops/nginx.conf new file mode 100644 index 0000000..194ea3b --- /dev/null +++ b/devops/nginx.conf @@ -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; + } +} \ No newline at end of file