Skip to content

Instantly share code, notes, and snippets.

@vidhill
Created July 26, 2017 22:36
Show Gist options
  • Save vidhill/0a85dc1848feee4171944dc4d7757895 to your computer and use it in GitHub Desktop.
Save vidhill/0a85dc1848feee4171944dc4d7757895 to your computer and use it in GitHub Desktop.
node-gyp within Docker
FROM node:6.9.1-alpine
MAINTAINER vidhill
RUN apk add --no-cache add python build-base # build base includes g++ and gcc and Make
COPY service.tgz /service/
RUN cd /service && tar xvf service.tgz && rm service.tgz && cd package
RUN cd /service/package && npm install
EXPOSE 8080
WORKDIR "/service/package"
ENTRYPOINT ["npm start"]
@mtrogers
Copy link

like a charm, thanks!

@elias551
Copy link

You have a typo at line 4, "add" should not be present after "--no-cache".

Thanks anyways, it was helpful !

@limafm
Copy link

limafm commented Mar 5, 2018

Thanks, it was helpful right now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment