txtodo.app

[DORMANT] the official website of txtodo
git clone git://git.figbert.com/txtodo.app.git
Log | Files | Refs | README | LICENSE

commit 98360b09c0280e8a78d641e872afbeceab608656
parent 3fd95cf3abb1d04b909aba572fe34956d8295ea1
Author: FIGBERT <figbert@figbert.com>
Date:   Wed,  9 Dec 2020 13:14:42 -0800

Add Dockerfile and nginx.conf

Diffstat:
ADockerfile | 13+++++++++++++
Anginx.conf | 15+++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:alpine as builder + +WORKDIR /home/site +COPY . . + +RUN npm install \ + && npm run build + +FROM nginx:alpine + +COPY --from=builder /home/site/public /usr/share/nginx/html +COPY ./nginx.conf /etc/nginx/nginx.conf + diff --git a/nginx.conf b/nginx.conf @@ -0,0 +1,15 @@ +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; + } + } +} +