add docker file

This commit is contained in:
root committed 2020-04-14 13:53:51 +00:00
1 parent f861d250cb
commit a7cdc94869
2 files changed
+11

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
node_modules/
build/
+9
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