This docker image provides a development environment with Create React App. Optionally Redux can also be utilised for larger projects
- Control the name of the app directory with the
APPNAME
environment variable - The default app name is
myapp
- Generated app is stored in
/app/$APPNAME
inside the container - The app runs on port 3000
- Application source code can be exposed by mounting the
/app
volume - Redux can be optionally installed by setting the
REDUX
environment variable totrue
- Redux is not included by default
docker run -ti -p 3000:3000 -e APPNAME=react-app -v $(pwd):/app dylanrhysscott/docker-react-dev
- Reactdocker run -ti -p 3000:3000 -e APPNAME=react-app -e REDUX=true -v $(pwd):/app dylanrhysscott/docker-react-dev
- React + Redux