From f3f67b31d56373d1cc87fc65830e133e51c9b7cc Mon Sep 17 00:00:00 2001 From: Erik Dasque Date: Tue, 3 Nov 2015 13:07:20 -0500 Subject: [PATCH] Insured we're on a recent & Long Time Support (LTS) version of node. Also added some helpful comment to explain what is doing what and the choices made. --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c44b71096d..7229e6be25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,15 @@ -FROM node:0.10-onbuild +# The base image is the latest 4.x node (LTS) on jessie (debian) +# -onbuild will install the node dependencies found in the project package.json +# and copy its content in /usr/src/app, its WORKDIR +FROM node:4-onbuild ENV NODE_ENV=production \ daemon=false \ silent=false +# nodebb setup will ask you for connection information to a redis (default), mongodb then run the forum +# nodebb upgrade is not included and might be desired CMD node app --setup && npm start + +# the default port for NodeBB is exposed outside the container EXPOSE 4567