File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1- # ReactJSDockerBuild
1+ # ReactJS Docker Image
2+
3+ Build docker image for ReactJS application.
4+
5+ ## Build Image
6+ To build image run this command (__ change the tag name & version with your preferred tag name & version__ ).
7+
8+ ` $ docker build . -t myorganization/myimage:1.0.0 `
9+
10+ ## Running Container from Image
11+
12+ To create a container from the image, run this command (__ change the tag name & version with your preferred tag name & version__ ).
13+
14+ ` $ docker run -d -p 3000:3000 --name reactjs-app myorganization/myimage:1.0.0 `
15+
16+ Then you can access the app from the browser with this url: ` http://127.0.0.1:3000 `
17+
18+ ## Dockerhub image
19+
20+ This repository is proven by running build in Dockerhub, you can see the result [ here] ( https://hub.docker.com/r/namikazebadri/reactjs-app ) .
You can’t perform that action at this time.
0 commit comments