Skip to content

Instantly share code, notes, and snippets.

@shams-ali
Created June 25, 2016 04:26
Show Gist options
  • Save shams-ali/ed1a5986857653b0e81ea626f58222f1 to your computer and use it in GitHub Desktop.
Save shams-ali/ed1a5986857653b0e81ea626f58222f1 to your computer and use it in GitHub Desktop.
Node Dockerfile
FROM node
RUN mkdir -p /usr/src/your-app-name
WORKDIR /usr/src/your-app-name
COPY package.json /usr/src/your-app-name/
RUN npm install
COPY . /usr/src/your-app-name
EXPOSE 3000
CMD [ "npm", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment