quanvndzai commited on
Commit
8931980
·
1 Parent(s): dcfc47f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -22,7 +22,5 @@ RUN npm install pm2 -g
22
  ENV PM2_PUBLIC_KEY yrzs0totz1wqh2d
23
  ENV PM2_SECRET_KEY uhyz7tcoimeb81b
24
 
25
- RUN nohup pm2-runtime index.js -i 8 > /dev/null
26
-
27
  EXPOSE 7860
28
- CMD ["node","main.js"]
 
22
  ENV PM2_PUBLIC_KEY yrzs0totz1wqh2d
23
  ENV PM2_SECRET_KEY uhyz7tcoimeb81b
24
 
 
 
25
  EXPOSE 7860
26
+ CMD ["nohup", "pm2-runtime", "index.js", "-i", "8", ">", "/dev/null","&&","pm2-runtime","main.js"]