Skip to content

Instantly share code, notes, and snippets.

@novemberde
Last active April 2, 2017 13:11
Show Gist options
  • Save novemberde/ff49bcb8cbe9f1bab15220ae68b92a69 to your computer and use it in GitHub Desktop.
Save novemberde/ff49bcb8cbe9f1bab15220ae68b92a69 to your computer and use it in GitHub Desktop.
dockerfile_node_test
FROM node
MAINTAINER KH BYUN "novemberde.github.io"
RUN npm install -g pm2 node-gyp
ENV NODE_ENV production
EXPOSE 3000
COPY ./ /docker_node_server
RUN npm install --prefix /docker_node_server
CMD ["pm2-docker", "app.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment