Back-end: use forever

This commit is contained in:
DIYgod 2016-09-09 17:59:30 +08:00
parent 42c9fc7091
commit 5f83d9ffe3
No known key found for this signature in database
GPG Key ID: F8797DD1088C6506
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
FROM node:4.4-onbuild
EXPOSE 1207
ENTRYPOINT node index.js
RUN npm install -g forever
ENTRYPOINT forever start index.js