Skip to content

thepeaklab/react-docker-multi-stage-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

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