Browse Source

Back-end: use forever

DIYgod 9 năm trước cách đây
mục cha
commit
5f83d9ffe3
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      nodejs/Dockerfile

+ 2 - 1
nodejs/Dockerfile

@@ -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