diff options
-rw-r--r-- | Dockerfile | 2 | ||||
-rwxr-xr-x | start.sh | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -13,8 +13,6 @@ ADD app /app/code/app | |||
13 | ADD start.sh /app/code/start.sh | 13 | ADD start.sh /app/code/start.sh |
14 | RUN npm install | 14 | RUN npm install |
15 | 15 | ||
16 | RUN npm install -g forever | ||
17 | |||
18 | EXPOSE 3000 | 16 | EXPOSE 3000 |
19 | 17 | ||
20 | CMD [ "/app/code/start.sh" ] | 18 | CMD [ "/app/code/start.sh" ] |
@@ -4,5 +4,5 @@ set -eu | |||
4 | 4 | ||
5 | export NODE_ENV=production | 5 | export NODE_ENV=production |
6 | 6 | ||
7 | forever start --workingDir /app/code app.js /app/data | 7 | cd /app/code |
8 | forever logs -f 0 \ No newline at end of file | 8 | app.js /app/data |