Minimal Docker web server exposing port 8080 and serving a simple Hello World response.
374
š GitHub Repository: albertrodriguezdev/docker-hello-world-webā
š³ Docker Hub Image: albertrodriguezdev/hello-world-webā
A lightweight Docker HTTP web server container exposing port 8080 and returning a simple "Hello World" response.
Ideal as a simple Docker example image, lightweight HTTP test container, or minimal web server for demos and workshops.
No configuration required ā just run and open your browser.
hello-world-web is a tiny containerized web server that:
8080Hello World from Docker! šIt is intentionally small, predictable, and easy to run in any Docker environment.
Works out of the box with Docker Desktop and any modern Docker installation.
Use the prebuilt image published on Docker Hub.
Clone this repository and run:
docker compose up
Then open:
Stop with:
Ctrl + C
docker run -p 8080:8080 albertrodriguezdev/hello-world-web
To use a different host port:
docker run -p 3000:8080 albertrodriguezdev/hello-world-web
Then open in your browser:
http://localhost:8080 (default port mapping: -p 8080:8080)http://localhost:3000 (if you used -p 3000:8080)Stop with:
Ctrl + C
Build the image:
docker build -t hello-world-web .
Run the container:
docker run -p 8080:8080 hello-world-web
To use a different host port:
docker run -p 3000:8080 hello-world-web
Then open in your browser:
http://localhost:8080 (default port mapping: -p 8080:8080)http://localhost:3000 (if you used -p 3000:8080)Stop with:
Ctrl + C
curl http://localhost:8080
Response:
Hello World from Docker! š
.
āāā Dockerfile
āāā docker-compose.yml
āāā app.py
āāā LICENSE
āāā README.md
Defines how the image is built and how the server starts.
Defines the local service configuration and port publishing.
Minimal Flask-based HTTP server returning "Hello World".
Simple, predictable, and ready to use.
Content type
Image
Digest
sha256:ed8570be4ā¦
Size
46.7 MB
Last updated
7 months ago
docker pull albertrodriguezdev/hello-world-web