quanvndzai commited on
Commit
b02b3d6
1 Parent(s): f29138f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -15,8 +15,9 @@ RUN npm install
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"]
 
15
  # Bundle app source
16
  COPY . .
17
 
18
+ RUN npm install pm2 -g
19
+ ENV PM2_PUBLIC_KEY yrzs0totz1wqh2d
20
+ ENV PM2_SECRET_KEY uhyz7tcoimeb81b
21
 
22
  EXPOSE 3000
23
+ CMD ["pm2-runtime", "index.js",">","/dev/null"]