ADD src /app/code/src
ADD app.js /app/code/app.js
ADD app /app/code/app
+ADD start.sh /app/code/start.sh
RUN npm install
+RUN npm install -g forever
+
EXPOSE 3000
-CMD [ "nodejs", "app.js"]
+CMD [ "/app/code/start.sh" ]
"morgan": "^1.6.0",
"multiparty": "^4.1.2",
"passport": "^0.2.2",
+ "passport-ldapjs": "^1.0.2",
+ "readline-sync": "^1.2.19",
"safetydance": "0.0.16",
"superagent": "^1.2.0",
"underscore": "^1.8.3"
--- /dev/null
+#!/bin/bash
+
+set -eu
+
+export NODE_ENV=production
+
+forever start --workingDir /app/code app.js
+forever logs -f 0
\ No newline at end of file