Created
July 26, 2017 22:36
-
-
Save vidhill/0a85dc1848feee4171944dc4d7757895 to your computer and use it in GitHub Desktop.
node-gyp within Docker
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.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"] |
You have a typo at line 4, "add" should not be present after "--no-cache".
Thanks anyways, it was helpful !
Thanks, it was helpful right now!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
like a charm, thanks!