add docker support (#279)

This commit is contained in:
Dee Luo 2019-11-06 22:29:04 +08:00 committed by Haishan
parent 4946f30243
commit 2c8a80b499

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM node:alpine AS builder
WORKDIR /app
COPY . .
RUN yarn && yarn run build
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/public /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]