Docker React Seed
Elegant project structure for React development and deploy inside a docker environment
Create React App
This command will create the app folder and initialize the react app
./console.sh create-react-app
Run yarn
Run yarn inside the dev container
./console.sh yarn add whateva
Development build
Just use docker-compose for it
docker-compose up
Production build
./console.sh build
Run production build
./console.sh run
Extract production build for static hosting
This will extract the build from the docker image into the 'build' folder
./console.sh extract