Skip to content

Instantly share code, notes, and snippets.

@thenayr
Created February 23, 2017 15:57
Show Gist options
  • Save thenayr/3e8a27642e43349ca77322b5848edfff to your computer and use it in GitHub Desktop.
Save thenayr/3e8a27642e43349ca77322b5848edfff to your computer and use it in GitHub Desktop.
Simple Dockerfile for Alpine Node 6.3.5 with Yarn
FROM node:6.9.5-alpine
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 [ "yarn", "start" ]
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment