This project explains how to run a react application in docker(https://www.docker.com/)
.
docker build . -t react-docker
docker run -p 8000:80 react-docker
and Navigate to http://localhost:8000/
Run yarn start
for a dev sever. Navigate to http://localhost:3000/
. The app will automatically reload if you change any of the source files inside app directory
.
- Run
yarn build
to build the project. The build artifacts will be stored in thebuild/
directory.