This repository contains the necessary files to build and run a simple web server using Docker. It's designed as a demonstration to teach the basics of Docker.
- Docker installed on your machine. To install Docker, follow the instructions on the [official Docker website.
Dockerfile
: A Dockerfile that defines the Docker image for the web server.index.html
: The HTML file that will be served by the web server.
To set up the web server, follow these steps:
-
Clone the Repository:
git clone https://github.com/Cyber-Courses/Simple-Python-Docker-Web-Server.git cd Simple-Python-Docker-Web-Server
-
Build the Docker Image:
docker build -t mywebserver .
-
Run the Docker Container:
docker run -p 8000:8000 mywebserver
After starting the container, you can access the web server by going to http://localhost:8000
in your browser.