Browse Source

fix dockerfile

dev_h
Ophir LOJKINE 6 years ago
parent
commit
b7e59bcec1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Dockerfile

+ 1
- 1
Dockerfile View File

8
 RUN touch /usr/bin/start.sh # this is the script which will run on start
8
 RUN touch /usr/bin/start.sh # this is the script which will run on start
9
 
9
 
10
 RUN echo 'npm install --production' >> /usr/bin/start.sh
10
 RUN echo 'npm install --production' >> /usr/bin/start.sh
11
-RUN echo 'npx forever --minUptime 7000 --spinSleepTime 2000 -o out.log -e err.log ./server/server.js' >> /usr/bin/start.sh
11
+RUN echo 'npx forever --minUptime 7000 --spinSleepTime 2000 -o out.log -e err.log /opt/app/server/server.js' >> /usr/bin/start.sh
12
 
12
 
13
 CMD ["/bin/sh","/usr/bin/start.sh"]
13
 CMD ["/bin/sh","/usr/bin/start.sh"]

Loading…
Cancel
Save