Skip to content

Example on how to deploy a create-react-app into production with docker multi-stage build.

Notifications You must be signed in to change notification settings

thepeaklab/react-docker-multi-stage-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React / Docker multi-stage setup

Example on how to deploy a create-react-app into production with docker multi-stage build. This project uses NGINX as webserver.

Build the Docker image:

docker build -t example/myapp .

Run your application-container with:

docker run -d -p 8080:80 example/myapp

And access using http://localhost:8080

The React project has been initialized with create-react-app by Facebook

About

Example on how to deploy a create-react-app into production with docker multi-stage build.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published