A tiny "Hello World" web server with a health check endpoint.
A Docker "Hello World" web server inspired by the tutum/hello-world image which seems to have become unmaintained, and returns HTTP/400 more often than it should.
- Always returns a HTTP 200 status code and a "Hello, world!" message.
- Has a health check endpoint,
/health, that returns an empty response.
docker build --rm infrastructureascode/hello-world .
# start the container docker run \ --detach \ --name hello-world \ --publish 8000:80 \ infrastructureascode/hello-world # curl the container curl http://0.0.0.0:8000/ # curl the health check endpoint which returns an empty response curl http://0.0.0.0:8000/health
Docker Pull Command