Add Docker Compose setup for local runs

Package the static site with nginx
This commit is contained in:
MMA
2026-08-14 21:11:15 +02:00
committed by p2r3
parent 2f7e26b02b
commit f4188cfaa7
3 changed files with 20 additions and 0 deletions
+5
View File
@@ -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/
+5
View File
@@ -0,0 +1,5 @@
services:
web:
build: .
ports:
- "8080:80"
+10
View File
@@ -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;
}
}