Created
November 5, 2018 19:02
-
-
Save gunar/feca8d5f71704630586e739d26aad5b2 to your computer and use it in GitHub Desktop.
Dockerfile
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 alpine:latest | |
WORKDIR /usr/src/app | |
RUN apk add --no-cache --update 'nodejs~8' yarn | |
RUN yarn global add node-gyp | |
RUN export PATH=$PATH:./node_modules/.bin | |
# http://bitjudo.com/blog/2014/03/13/building-efficient-dockerfiles-node-dot-js/ | |
ADD package.json yarn.lock ./ | |
RUN yarn install -s --ignore-scripts | |
ADD . . | |
RUN yarn build | |
CMD ["yarn", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment