增加Dockerfile,支持以Docker容器模式运行。

This commit is contained in:
Peng Xiao
2018-01-05 14:23:09 +08:00
parent 40fe20dba4
commit 4c01e3e30e
2 changed files with 15 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
FROM mhart/alpine-node:8
WORKDIR /app
COPY . /app
RUN npm install
EXPOSE 3000
CMD ["node", "app.js"]