Created
March 13, 2019 13:19
-
-
Save steevehook/45a19bd168596abe0f9b09165e2ef6df 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:alpine as builder | |
WORKDIR /app | |
COPY package.json . | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
FROM nginx | |
ENV PORT 3000 | |
EXPOSE $PORT | |
COPY nginx/default.conf /etc/nginx/conf.d/default.conf | |
COPY --from=builder /app/build /usr/share/nginx/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment