Created
February 16, 2021 12:23
-
-
Save apotox/1b5631378c63f116aa5a1de06df94b9f to your computer and use it in GitHub Desktop.
deploy your react js app using Dockerfile without nginx server
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:12.0-slim | |
COPY . . | |
RUN yarn install | |
RUN yarn build | |
RUN npm install -g serve | |
EXPOSE 8080 | |
CMD ["serve","-p","8080","build/"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment