Skip to content

Instantly share code, notes, and snippets.

@bjyoungblood
Created November 20, 2014 18:38
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 bjyoungblood/22b577365dbdbbfc9592 to your computer and use it in GitHub Desktop.
Save bjyoungblood/22b577365dbdbbfc9592 to your computer and use it in GitHub Desktop.
FROM dockerfile/nodejs
RUN mkdir /node_modules
WORKDIR /node_modules
ADD package.json .
ADD .npmrc .
RUN npm install
RUN mkdir /code
WORKDIR /code
ADD . /code
RUN rm -r node_modules
RUN ln -s /node_modules/node_modules node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment