https://github.com/Divkix/AliveImage
Basic go app & docker image with simple json response.
https://github.com/Divkix/AliveImage
alive-image aliveimage bunrouter docker docker-image golang status-page
Last synced: about 1 year ago
JSON representation
Basic go app & docker image with simple json response.
- Host: GitHub
- URL: https://github.com/Divkix/AliveImage
- Owner: Divkix
- License: mit
- Created: 2022-11-26T22:06:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T15:23:25.000Z (over 1 year ago)
- Last Synced: 2025-04-02T19:15:19.020Z (about 1 year ago)
- Topics: alive-image, aliveimage, bunrouter, docker, docker-image, golang, status-page
- Language: Dockerfile
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Alive Image
[](https://github.com/divkix/AliveImage/actions/workflows/ci.yml)
[](https://hub.docker.com/r/divkix/aliveimage)

[](https://hub.docker.com/r/divkix/aliveimage)
[](https://hub.docker.com/r/divkix/aliveimage)
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](https://hub.docker.com/r/divkix/aliveimage) and [Github Container Registry](https://github.com/divkix/AliveImage/pkgs/container/aliveimage).
## Environment Variables
- PORT: The port to serve the response. Default: 80
## Usage
```bash
docker run -d -p 80:80 -e PORT=80 --name aliveImage divkix/aliveimage
```
## Build and Run
Build:
```bash
docker build -t aliveimage-local .
```
Run:
```bash
docker run -d -p 80:80 -e PORT=80 --name aliveImage aliveimage-local
```
## Test
```bash
curl localhost
```
By default, the image will serve a json response with the following content: `{"status": "alive", "uptime": "1m 0s"}`