This repository contains files for building a Docker container image for a simple static website using Nginx. The Dockerfile defines the website and its dependencies.
-
index.html
: The static HTML file for the website. -
Dockerfile
: Defines the Docker image and how to set up the website within the container.
To build and run the Docker container, follow these steps:
- Clone this repository to your local machine
- Navigate to the project directory
- Build the Docker image
docker build -t staticwebsite .
- Run the Docker container
docker run -d -p 8080:80 staticwebsite
The website should now be accessible at http://localhost:8080 in your web browser.
This project is licensed under the MIT license
Brian Mathenge