{"id":18411001,"url":"https://github.com/cloudlena/healthcheck","last_synced_at":"2025-07-11T06:35:02.598Z","repository":{"id":44846109,"uuid":"162013487","full_name":"cloudlena/healthcheck","owner":"cloudlena","description":"A minimal health checked Docker base image","archived":false,"fork":false,"pushed_at":"2025-05-26T10:48:57.000Z","size":37,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T06:06:10.944Z","etag":null,"topics":["health-check","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudlena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-12-16T15:16:33.000Z","updated_at":"2025-05-26T10:49:01.000Z","dependencies_parsed_at":"2024-02-10T22:25:45.941Z","dependency_job_id":"f5fcd0ef-eb8b-4fdb-a54d-d050c2ff9df9","html_url":"https://github.com/cloudlena/healthcheck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudlena/healthcheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fhealthcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fhealthcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fhealthcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fhealthcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudlena","download_url":"https://codeload.github.com/cloudlena/healthcheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fhealthcheck/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264747771,"owners_count":23657898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["health-check","rust"],"created_at":"2024-11-06T03:34:51.500Z","updated_at":"2025-07-11T06:35:02.555Z","avatar_url":"https://github.com/cloudlena.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Healthcheck\n\n[![Build Status](https://img.shields.io/travis/cloudlena/healthcheck.svg?style=flat-square)](https://travis-ci.org/cloudlena/healthcheck)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fcloudlena%2Fhealthcheck%2Fbadge\u0026style=flat-square)](https://github.com/cloudlena/healthcheck/actions)\n[![Docker Build](https://img.shields.io/docker/build/cloudlena/healthcheck.svg?style=flat-square)](https://hub.docker.com/r/cloudlena/healthcheck)\n\nA base image for minimal Docker images. It is an extension of `scratch` that contains a built in HTTP health check and encourages non-privileged execution.\nThis image only adds about 2.8M to `scratch` and is intended for running HTTP services written in languages that compile to a binary format (e.g. [Go](https://golang.org) or [Rust](https://www.rust-lang.org)).\n\n## Advantages\n\n- Your binary will be executed using the non privileged `app` user\n- A HTTP health check is run every 30 seconds\n\n## Usage\n\n### Rust\n\n```Dockerfile\nFROM rust:1 AS builder\nWORKDIR /usr/src/myapp\nCOPY . .\nRUN cargo build --release\n\nFROM cloudlena/healthcheck:latest\nWORKDIR /usr/myapp\nCOPY --from=builder /usr/src/app/target/release/myapp .\nEXPOSE 8080\nENTRYPOINT [\"./myapp\"]\n```\n\nYou can add the following lines to your `Cargo.toml` file to further minimize the size of the final image:\n\n```toml\n[profile.release]\nopt-level = \"z\"\nlto = true\n```\n\n### Go\n\n```Dockerfile\nFROM golang:1 AS builder\nWORKDIR /usr/src/myapp\nCOPY . .\nRUN CGO_ENABLED=0 go build -ldflags=\"-s -w\" -a -installsuffix cgo -o bin/myapp ./cmd/myapp\n\nFROM healthcheck:latest\nWORKDIR /usr/myapp\nCOPY --from=builder /usr/src/myapp/myapp .\nEXPOSE 8080\nENTRYPOINT [\"./myapp\"]\n```\n\n### Customize\n\nYou can set the following environment variables in your container to customize the health check:\n\n- `PORT`: The port your app is listening on. Defaults to `8080`.\n- `HEALTHCHECK_PATH`: The health check path of your app. Defaults to `/`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudlena%2Fhealthcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudlena%2Fhealthcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudlena%2Fhealthcheck/lists"}