figbertmath

[RADIOACTIVE] miscellaneous math programs in website form
git clone git://git.figbert.com/figbertmath.git
Log | Files | Refs | README

commit b1302af2ec92033be13b3aa6bb6ad295eceb6770
parent 3f5d8c6db7928cc5510f62afc7d411669c6fa342
Author: FIGBERT <figbert@figbert.com>
Date:   Sat, 19 Sep 2020 15:57:46 -0700

:whale: Add Docker files and nginx config

Diffstat:
A.dockerignore | 3+++
ADockerfile | 14++++++++++++++
Anginx.conf | 16++++++++++++++++
3 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/.dockerignore b/.dockerignore @@ -0,0 +1,3 @@ +node_modules +.git + diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine as builder + +WORKDIR /home/site +COPY . . + +RUN apk --no-cache add npm \ + && npm install --production \ + && npm run build + +FROM nginx:alpine + +COPY --from=builder /home/site/build /usr/share/nginx/html +COPY ./nginx.conf /etc/nginx/nginx.conf + diff --git a/nginx.conf b/nginx.conf @@ -0,0 +1,16 @@ +events { } +http { + include /etc/nginx/mime.types; + include /etc/nginx/conf.d/*.conf; + server_tokens off; + server { + listen 80; + listen [::]:80; + root /usr/share/nginx/html; + location / { + try_files $uri $uri/ =404; + error_page 404 /404.html; + } + } +} +