-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unisbadri
committed
Apr 8, 2021
1 parent
17f33cc
commit d4b4996
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
# ReactJSDockerBuild | ||
# ReactJS Docker Image | ||
|
||
Build docker image for ReactJS application. | ||
|
||
## Build Image | ||
To build image run this command (__change the tag name & version with your preferred tag name & version__). | ||
|
||
`$ docker build . -t myorganization/myimage:1.0.0` | ||
|
||
## Running Container from Image | ||
|
||
To create a container from the image, run this command (__change the tag name & version with your preferred tag name & version__). | ||
|
||
`$ docker run -d -p 3000:3000 --name reactjs-app myorganization/myimage:1.0.0` | ||
|
||
Then you can access the app from the browser with this url: `http://127.0.0.1:3000` | ||
|
||
## Dockerhub image | ||
|
||
This repository is proven by running build in Dockerhub, you can see the result [here](https://hub.docker.com/r/namikazebadri/reactjs-app). |