-
-
Save mhobesong/20166f1f51a19ee618390d2299e14ca9 to your computer and use it in GitHub Desktop.
React app Dockerfile
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 mhart/alpine-node:11 AS builder | |
WORKDIR /app | |
COPY . . | |
RUN yarn install | |
RUN yarn run build | |
FROM mhart/alpine-node | |
RUN yarn global add serve | |
WORKDIR /app | |
COPY --from=builder /app/build . | |
CMD ["serve", "-p", "80", "-s", "."] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment