Skip to content

Divkix/AliveImage

Repository files navigation

Alive Image

CI Docker Image Version (latest semver) Repo Size Docker Image Size (tag) Docker Pulls

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.

Environment Variables

  • PORT: The port to serve the response. Default: 80

Usage

docker run -d -p 80:80 -e PORT=80 --name aliveImage divkix/aliveimage

Build and Run

Build:

docker build -t aliveimage-local .

Run:

docker run -d -p 80:80 -e PORT=80 --name aliveImage aliveimage-local

Test

curl localhost

By default, the image will serve a json response with the following content: {"status": "alive", "uptime": "1m 0s"}

About

Basic go app & docker image with simple json response.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors 2

  •  
  •