Skip to content

Instantly share code, notes, and snippets.

@thenayr
Created February 23, 2017 15:30
Show Gist options
  • Save thenayr/830b3058e18c32facf09d3f03c8b3a16 to your computer and use it in GitHub Desktop.
Save thenayr/830b3058e18c32facf09d3f03c8b3a16 to your computer and use it in GitHub Desktop.
Simple Dockerfile for Node 6.9.5 with Yarn
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