Add Docker Compose setup for local runs
Package the static site with nginx
This commit is contained in:
@@ -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/
|
||||
@@ -0,0 +1,5 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:80"
|
||||
+10
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user