Skip to content

Instantly share code, notes, and snippets.

@mhaagens
Created October 13, 2017 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhaagens/c44b96829ca080a861aa60108b878571 to your computer and use it in GitHub Desktop.
Save mhaagens/c44b96829ca080a861aa60108b878571 to your computer and use it in GitHub Desktop.
Node Frontend Docker Quickstart
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