Skip to content

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 Dockerfile.

Notifications You must be signed in to change notification settings

Cyber-Courses/Simple-Python-Docker-Web-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Simple Docker Web Server

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.

Prerequisites

Repository Structure

  • 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.

Setup

To set up the web server, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/Cyber-Courses/Simple-Python-Docker-Web-Server.git
    cd Simple-Python-Docker-Web-Server
  2. Build the Docker Image:

    docker build -t mywebserver .
  3. 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.

About

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 Dockerfile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published