fix dockerfile

This commit is contained in:
Ophir LOJKINE 2019-03-21 22:38:37 +01:00
parent 87372e4f79
commit b7e59bcec1

View file

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