feat: 添加Dockerfile

This commit is contained in:
hatuw
2019-06-02 21:55:11 +08:00
parent 8c47b2babb
commit bfc9712371
5 changed files with 9945 additions and 3 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM node:10-alpine
ENV EXPOSE_PORT 3000
ENV TZ=Asia/Shanghai
WORKDIR /app
COPY package*.json ./
RUN npm install -g @babel/cli @babel/core \
&& npm install
COPY . .
RUN npm run build
EXPOSE ${EXPOSE_PORT}
ENTRYPOINT [ "node", "/app/dist/app.js" ]