Skip to content

Instantly share code, notes, and snippets.

@borjaburgos
Created November 9, 2014 22:51
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 borjaburgos/b365c72cc32443f9b484 to your computer and use it in GitHub Desktop.
Save borjaburgos/b365c72cc32443f9b484 to your computer and use it in GitHub Desktop.
# DOCKER-VERSION 1.2.0
FROM node
EXPOSE 80
ADD package.json /tmp/package.json
RUN cd /tmp && npm install --production
RUN cd /tmp && npm install -g forever
COPY . /web
RUN rm -rf /web/node_modules && mkdir -p /web/node_modules && cp -a /tmp/node_modules /web
RUN mkdir -p /web/node_modules
RUN cp -a /tmp/node_modules /web
WORKDIR /web
CMD ["forever","dist/server/js/web.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment