Skip to content

Instantly share code, notes, and snippets.

@xhinking
Created January 20, 2017 09:29
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 xhinking/0115da8ffc604ca04ca5415a1193fab2 to your computer and use it in GitHub Desktop.
Save xhinking/0115da8ffc604ca04ca5415a1193fab2 to your computer and use it in GitHub Desktop.
Node Dockerfile example
FROM node:7.4
ENV HEY_HOME /hey-node
RUN mkdir ${HEY_HOME}/
WORKDIR $HEY_HOME
COPY package.json ${HEY_HOME}/
RUN npm install
COPY . ${HEY_HOME}/
EXPOSE 8080
CMD ["node", "index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment