Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.