From f4188cfaa77c2d3b3f7217393d7a514e8eeaa7d0 Mon Sep 17 00:00:00 2001 From: MMA <58857539+TheGeeKing@users.noreply.github.com> Date: Fri, 14 Aug 2026 21:11:15 +0200 Subject: [PATCH] Add Docker Compose setup for local runs Package the static site with nginx --- Dockerfile | 5 +++++ compose.yml | 5 +++++ nginx.conf | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml create mode 100644 nginx.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3ee9a62 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:alpine + +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY index.html 404.html /usr/share/nginx/html/ +COPY alphabets.js compress.js main.js qrcode.js standalone.js /usr/share/nginx/html/ diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..c7f78d7 --- /dev/null +++ b/compose.yml @@ -0,0 +1,5 @@ +services: + web: + build: . + ports: + - "8080:80" diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..0a4509c --- /dev/null +++ b/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /404.html; + } +}