Created
February 23, 2017 15:57
-
-
Save thenayr/3e8a27642e43349ca77322b5848edfff to your computer and use it in GitHub Desktop.
Simple Dockerfile for Alpine Node 6.3.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-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