DeFactOfficial commited on
Commit
e3156f8
1 Parent(s): 43dee0d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -28,7 +28,7 @@ RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \
28
  && npm install -g npm@latest
29
 
30
  # pm2 is awesome... lets you run node.js scripts as services with zero configuration
31
- RUN npm install pm2 -g
32
 
33
  # Create working directory that matches HF Spaces expectations
34
  WORKDIR $HOME/code
@@ -68,13 +68,4 @@ RUN nginx
68
  #cd /code/service3 && ./run.sh > /var/log/service3.log 2>&1 &
69
 
70
  # Start the API
71
- ENTRYPOINT ["pm2", "start", "./api.js"]
72
-
73
- # Wait for services to start
74
- RUN sleep 5
75
-
76
- # Display the status of the service, make sure it started
77
- RUN pm2 list
78
-
79
- # Tail the logs in background
80
- #tail -f /var/log/*.log &
 
28
  && npm install -g npm@latest
29
 
30
  # pm2 is awesome... lets you run node.js scripts as services with zero configuration
31
+ #RUN npm install pm2 -g
32
 
33
  # Create working directory that matches HF Spaces expectations
34
  WORKDIR $HOME/code
 
68
  #cd /code/service3 && ./run.sh > /var/log/service3.log 2>&1 &
69
 
70
  # Start the API
71
+ ENTRYPOINT ["node", "./api.js"]