Created
March 23, 2016 22:42
-
-
Save eoinsha/e31bc5c70eecf83d7ff6 to your computer and use it in GitHub Desktop.
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:4-slim | |
RUN mkdir /node-seneca-base | |
COPY package.json /node-seneca-base | |
WORKDIR /node-seneca-base | |
RUN npm install | |
COPY . /node-seneca-base | |
RUN npm link | |
RUN mkdir /src | |
WORKDIR /src | |
ONBUILD COPY package.json /src/ | |
ONBUILD RUN npm link node-seneca-base | |
ONBUILD RUN npm install | |
ONBUILD COPY . /src/ | |
ONBUILD WORKDIR /src | |
CMD ["node", "/src/index.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment