Skip to content

Instantly share code, notes, and snippets.

@victorb
Last active July 21, 2016 20:21
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 victorb/b1147bb9786e100b97c0a8ad35f37fe3 to your computer and use it in GitHub Desktop.
Save victorb/b1147bb9786e100b97c0a8ad35f37fe3 to your computer and use it in GitHub Desktop.
Dockerfile for NodeJS in production. List of available versions: https://github.com/mhart/alpine-node
FROM mhart/alpine-node:6.3.0
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/package.json
RUN npm install
COPY . /usr/src/app
ENV NODE_ENV=production
CMD npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment