quanvndzai commited on
Commit
dcfc47f
1 Parent(s): 1cc048f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -11,6 +11,7 @@ USER root
11
  COPY package*.json ./
12
 
13
  RUN npm install
 
14
  # If you are building your code for production
15
  # RUN npm ci --only=production
16
 
@@ -21,5 +22,7 @@ RUN npm install pm2 -g
21
  ENV PM2_PUBLIC_KEY yrzs0totz1wqh2d
22
  ENV PM2_SECRET_KEY uhyz7tcoimeb81b
23
 
24
- EXPOSE 3000
25
- CMD ["pm2-runtime", "index.js","-i","8",">","/dev/null"]
 
 
 
11
  COPY package*.json ./
12
 
13
  RUN npm install
14
+ RUN npm install express
15
  # If you are building your code for production
16
  # RUN npm ci --only=production
17
 
 
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"]