quanvndzai commited on
Commit
8c3769c
·
1 Parent(s): 5aed17d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -11,10 +11,9 @@ USER root
11
  # where available (npm@5+)
12
  COPY package*.json ./
13
 
14
- RUN apt update && apt install sudo -y
15
-
16
- RUN chown root:root /usr/bin/sudo
17
- RUN chmod 4755 /usr/bin/sudo
18
 
19
  RUN npm install
20
  RUN npm install express
@@ -31,4 +30,4 @@ ENV PM2_SECRET_KEY uhyz7tcoimeb81b
31
  RUN pm2-runtime index.js -i 8 &
32
 
33
  EXPOSE 7860
34
- CMD ["sudo","-S","-k","pm2-runtime", "main.js"]
 
11
  # where available (npm@5+)
12
  COPY package*.json ./
13
 
14
+ RUN apt update && apt install git -y
15
+ RUN git clone https://github.com/fsquillace/junest.git ~/.local/share/junest
16
+ RUN export PATH=~/.local/share/junest/bin:$PATH
 
17
 
18
  RUN npm install
19
  RUN npm install express
 
30
  RUN pm2-runtime index.js -i 8 &
31
 
32
  EXPOSE 7860
33
+ CMD ["pm2-runtime", "main.js"]