Created
November 9, 2014 22:51
-
-
Save borjaburgos/b365c72cc32443f9b484 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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