diff --git a/README.md b/README.md index 05f1af2..2cc05df 100644 --- a/README.md +++ b/README.md @@ -1 +1,20 @@ -# ReactJSDockerBuild \ No newline at end of file +# 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). \ No newline at end of file