Skip to content

Commit

Permalink
Insured we're on a recent & Long Time Support (LTS) version of node.
Browse files Browse the repository at this point in the history
Also added some helpful comment to explain what is doing what and the choices made.
  • Loading branch information
Erik Dasque committed Nov 3, 2015
1 parent c336996 commit f3f67b3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f3f67b3

Please sign in to comment.