Created
October 13, 2017 06:26
-
-
Save mhaagens/c44b96829ca080a861aa60108b878571 to your computer and use it in GitHub Desktop.
Node Frontend Docker Quickstart
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:alpine | |
WORKDIR /code | |
run apk --no-cache add --virtual native-deps \ | |
g++ gcc libgcc libstdc++ linux-headers make python && \ | |
npm install --quiet node-gyp -g && \ | |
npm rebuild node-sass --force && \ | |
apk del native-deps | |
CMD ["yarn", "start"] | |
EXPOSE 9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment