A minimal Docker image that serves a basic "Hello, World!" web page.
150
A minimal Docker image that serves a basic "Hello, World!" web page. GitHub source code.
The image is based on python:3.15-alpine and runs Python's built-in HTTP
server (python3 -m http.server) on port 8080, serving the static
index.html page included in this repository.
Dockerfile — builds the image and starts the HTTP serverindex.html — the static page served by the containerdocker build -t hello-world-web .
docker run -p 8080:8080 hello-world-web
Then open http://localhost:8080 in your browser.
The image is published on Docker Hub: fabienlavocat/hello-world-web
docker pull fabienlavocat/hello-world-web
docker run -p 8080:8080 fabienlavocat/hello-world-web
The image is multi-platform — Docker automatically pulls the right variant:
linux/amd64linux/arm64docker pull fabienlavocat/hello-world-web:latest