The Dockerfile Multistage project aims to streamline the containerization process by leveraging Docker's multistage build functionality. This approach enables the creation of lightweight and efficient Docker images by incorporating multiple stages within a single Dockerfile.
Ensure Docker is installed on your system. Download and install Docker from the official website: Docker Engine
git clone https://github.com/harshm1225/reactjsdemo
cd reactjsdemo
docker build -t <image_name> -f Dockerfile-multistage .
docker run -d --name <container_name> -p <host_port>:80 <image_name>
Once the Docker container is running, you can access the application by opening a web browser and navigating to:
http://<public_ip>:<host_port>
Replace <public_ip> with the public IP address of your host machine and <host_port> with the port number specified when running the Docker container.
For example, if your public IP address is 123.456.789.0 and you specified port 8080 as the host port, you would visit:
http://123.456.789.0:8080
This will direct you to the application running inside the Docker container on your host machine.