Skip to content

A dockerised react development environment with Create React App

Notifications You must be signed in to change notification settings

Wyntuition/docker-react-dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Dockerised React App

This docker image provides a development environment with Create React App. Optionally Redux can also be utilised for larger projects

Configuration

  • 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 to true
  • Redux is not included by default

Example

  • docker run -ti -p 3000:3000 -e APPNAME=react-app -v $(pwd):/app dylanrhysscott/docker-react-dev - React
  • docker run -ti -p 3000:3000 -e APPNAME=react-app -e REDUX=true -v $(pwd):/app dylanrhysscott/docker-react-dev - React + Redux

About

A dockerised react development environment with Create React App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%