-
-
Save zhangtemplar/2cc72361eac226ba88234591384e2e59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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