Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created November 30, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pencilcheck/9ed3223acb079ef6ac79 to your computer and use it in GitHub Desktop.
Save pencilcheck/9ed3223acb079ef6ac79 to your computer and use it in GitHub Desktop.
FROM pencilcheck/base:v1
MAINTAINER Penn Su
RUN npm install -g gulp nodemon coffee-script
#To cache node modules across
RUN mkdir -p /install
ADD package.json /install/package.json
RUN npm config set registry https://registry.npmjs.org/
RUN cd /install && npm install --ignore-scripts --unsafe-perm
ENV NODE_PATH "/install/node_modules"
ADD . /src
WORKDIR /src
EXPOSE 3000 3001 3002
CMD ["gulp", "serve"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment