From 30198b3e5cff90813754d9f2f571220781c75636 Mon Sep 17 00:00:00 2001 From: nquidox Date: Wed, 1 Oct 2025 11:04:11 +0300 Subject: [PATCH] docker file + nginx config --- Dockerfile | 6 ++++++ nginx.conf | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100644 nginx.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6ff35c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM nginx:alpine +COPY dist/ /usr/share/nginx/html + +COPY nginx.conf /etc/nginx/nginx.conf + +EXPOSE 9080 \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..c97d589 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,17 @@ +events {} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + server { + listen 9080; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } + } +}