quanvndzai commited on
Commit
f29138f
1 Parent(s): 5dab5e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -15,5 +15,8 @@ RUN npm install
15
  # Bundle app source
16
  COPY . .
17
 
 
 
 
18
  EXPOSE 3000
19
- CMD [ "node", "index.js" ,"&"]
 
15
  # Bundle app source
16
  COPY . .
17
 
18
+ RUN npm install -g pm2
19
+ RUN pm2 link uhyz7tcoimeb81b yrzs0totz1wqh2d
20
+
21
  EXPOSE 3000
22
+ CMD ["nohup", "pm2", "start", "index.js" ,">","/dev/null"]