Skip to content

Commit d4b4996

Browse files
author
unisbadri
committed
adding instructions
1 parent 17f33cc commit d4b4996

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
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).

0 commit comments

Comments
 (0)