|
@@ -8,6 +8,6 @@ VOLUME /opt/app/server-data
|
8
|
8
|
RUN touch /usr/bin/start.sh # this is the script which will run on start
|
9
|
9
|
|
10
|
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
|
13
|
CMD ["/bin/sh","/usr/bin/start.sh"]
|