This project demonstrates how to deploy a static HTML website using Nginx inside a Docker container.
The HTML files are cloned from GitHub and served via Nginx, with the container accessible from the browser using a mapped port.
The Dockerfile used for building the image is located at codes/Dockerfile.

Cloned the website files from GitHub and displayed the repository contents.

Created a Dockerfile inside the codes/ folder to set up an Nginx container and copy website files to the correct directory.

Built a custom Docker image from the Dockerfile.

Started a container from the built image and mapped host port 3000 to container port 80.

Accessed the website from a browser via localhost:3000 and verified it loaded correctly.

Created a new Docker image from the running container.

Verified that no images were available in Docker Hub before pushing.

Pushed the image to Docker Hub repository.

Confirmed that the image was successfully uploaded to Docker Hub.

Pulled the image from Docker Hub after deleting it locally and ran a new container.

Confirmed the website still works correctly after pulling the image from Docker Hub.
-
Clone the repository bash git clone cd
-
Navigate to the codes/ folder and build the Docker image bash cd codes docker build -t my-nginx-website .
-
Run the container bash docker run -d -p 3000:80 my-nginx-website
-
Access from browser Open:
-
Pull the image bash docker pull /
-
Run the container bash docker run -d -p 3000:80 /
-
Access from browser Open:
This project is licensed under the MIT License - see the LICENSE file for details.
