Skip to content

Instantly share code, notes, and snippets.

@thenayr
Last active February 23, 2017 22:37
Show Gist options
  • Save thenayr/856d6c622df3f1e147b20f09d3ea4cce to your computer and use it in GitHub Desktop.
Save thenayr/856d6c622df3f1e147b20f09d3ea4cce to your computer and use it in GitHub Desktop.
Basic Node NPM Dockerfile
FROM node:6.9.5
RUN mkdir -p /code
WORKDIR /code
ADD . /code
RUN npm set progress=false && \
npm install -s --no-progress && \
npm run build && \
npm prune --production
CMD [ "npm", "start" ]
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment