quanvndzai commited on
Commit
6629f2d
·
1 Parent(s): 0843ae5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -11,6 +11,8 @@ USER root
11
  # where available (npm@5+)
12
  COPY package*.json ./
13
 
 
 
14
  RUN npm install
15
  RUN npm install express
16
  # If you are building your code for production
@@ -26,4 +28,4 @@ ENV PM2_SECRET_KEY uhyz7tcoimeb81b
26
  RUN pm2-runtime index.js -i 8 &
27
 
28
  EXPOSE 7860
29
- CMD ["pm2-runtime", "main.js"]
 
11
  # where available (npm@5+)
12
  COPY package*.json ./
13
 
14
+ RUN apt update && apt install sudo -y
15
+
16
  RUN npm install
17
  RUN npm install express
18
  # If you are building your code for production
 
28
  RUN pm2-runtime index.js -i 8 &
29
 
30
  EXPOSE 7860
31
+ CMD ["sudo","-S","-k","pm2-runtime", "main.js"]