Skip to content

Instantly share code, notes, and snippets.

@zhangtemplar
Forked from tribou/Dockerfile
Last active October 26, 2017 05:49
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 zhangtemplar/2cc72361eac226ba88234591384e2e59 to your computer and use it in GitHub Desktop.
Save zhangtemplar/2cc72361eac226ba88234591384e2e59 to your computer and use it in GitHub Desktop.
FROM node
MAINTAINER zhangtemplar
# 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 80
# Start the app
CMD serve -s build -p 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment