A simple docker image based on go and docker that serves a json response with the uptime of the container.
Made using go and docker.
Image available on Docker Hub and Github Container Registry.
- PORT: The port to serve the response. Default: 80
docker run -d -p 80:80 -e PORT=80 --name aliveImage divkix/aliveimage
Build:
docker build -t aliveimage-local .
Run:
docker run -d -p 80:80 -e PORT=80 --name aliveImage aliveimage-local
curl localhost
By default, the image will serve a json response with the following content: {"status": "alive", "uptime": "1m 0s"}