Last active
July 21, 2016 20:21
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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