Skip to content

Instantly share code, notes, and snippets.

@tribou
Last active October 26, 2017 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tribou/4f3b5940286b31889dc1 to your computer and use it in GitHub Desktop.
Save tribou/4f3b5940286b31889dc1 to your computer and use it in GitHub Desktop.
FROM node:0.12
MAINTAINER tribou
# Prepare app directory
RUN mkdir -p /usr/src/app
ADD . /usr/src/app
# Install dependencies
WORKDIR /usr/src/app
RUN npm install
# Build the app
RUN npm build
# Expose the app port
EXPOSE 8000
# Start the app
CMD npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment