Created
February 23, 2017 15:30
-
-
Save thenayr/830b3058e18c32facf09d3f03c8b3a16 to your computer and use it in GitHub Desktop.
Simple Dockerfile for Node 6.9.5 with Yarn
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 | |
RUN mkdir -p /code | |
WORKDIR /code | |
ADD . /code | |
RUN npm install -g -s --no-progress yarn && \ | |
yarn && \ | |
yarn run build && \ | |
yarn run prune && \ | |
yarn cache clean | |
CMD [ "npm", "start" ] | |
EXPOSE 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment