add docker file

This commit is contained in:
Jay 2020-04-14 13:53:51 +00:00
parent f861d250cb
commit a7cdc94869
2 changed files with 11 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
node_modules/
build/

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:lts-alpine as builder
WORKDIR /data
COPY . .
RUN npm i \
&& npm run build
FROM nginx:alpine
WORKDIR /
COPY --from=builder /data/build/ /usr/share/nginx/html