Feature: added docker support

This commit is contained in:
loopsun 2019-10-09 11:55:41 +08:00
parent 06708949a1
commit 52d9c51e69
6 changed files with 41 additions and 0 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
# build a small nginx image with built app
FROM nginx
## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*
## From 'build' copy website to default nginx public folder
COPY ./build/prod /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]