Created
February 22, 2017 22:35
-
-
Save thenayr/0fe89c1d2d4b9cbd9a3f42a97ddc8185 to your computer and use it in GitHub Desktop.
Simple Dockerfile for Node 6.9.5 alpine
This file contains 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 node:6.9.5-alpine | |
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