Skip to content

Instantly share code, notes, and snippets.

@eoinsha
Created March 23, 2016 22:42
Show Gist options
  • Save eoinsha/e31bc5c70eecf83d7ff6 to your computer and use it in GitHub Desktop.
Save eoinsha/e31bc5c70eecf83d7ff6 to your computer and use it in GitHub Desktop.
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