Skip to content

Latest commit

 

History

History
executable file
·
31 lines (16 loc) · 929 Bytes

README.md

File metadata and controls

executable file
·
31 lines (16 loc) · 929 Bytes

This is a React app bootstrapped with creat-react-app with configuration to build it into a Docker image

To build Docker image of this app

  • docker image build -t shivam:app . (
  • To see the image, run docker image ls shivam:app

To run the Docker container

  • docker container run -it -p 3000:3000 shivam:app
  • Open the browser and go to 'http://localhost:3000' to see the app

To run the Docker container and see the output from hot-reloading in your terminal

  • docker container run -it -p 3000:3000 -p 35729:35729 -v $(pwd):/app shivam:app

To run the Docker container and build the app

  • docker container run -it -v $(pwd):/app shivam:app build

To run the Docker container and run test for the app

  • docker container run -it -v $(pwd):/app shivam:app test

You can just get the Docker image that I built from Docker hub

  • Simply run docker pull shiang/react

Special thanks to