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; + } +}