Skip to content

Instantly share code, notes, and snippets.

@BlueHotDog
Created July 31, 2016 18:22
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 BlueHotDog/d9c4175c3f9a7a0e27ec615a9b878473 to your computer and use it in GitHub Desktop.
Save BlueHotDog/d9c4175c3f9a7a0e27ec615a9b878473 to your computer and use it in GitHub Desktop.
FROM node:6.3.0
RUN mkdir -p /home/app/code/node_modules
WORKDIR /home/app/code
ENV NODE_ENV development
RUN echo '{ "allow_root": true }' > /root/.bowerrc
COPY package.json /home/app/code/
RUN npm cache clean && \
npm install --silent --progress=false&& \
apt-get clean
COPY bower.json /home/app/code/
RUN ./node_modules/bower/bin/bower install --production --silent --config.interactive=false
COPY . /home/app/code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment