Skip to content

feat: add docker healthcheck - #11

Merged
bitxwave merged 1 commit into
masterfrom
feat/docker-healthcheck
Oct 19, 2026
Merged

bitxwave merged 1 commit into
masterfrom
feat/docker-healthcheck

Conversation

@bitxwave

Copy link
Copy Markdown
Owner

The runtime image is distroless, so it has no shell, curl or wget to probe with. Add a lens healthcheck subcommand that GETs /api/health on the configured PORT over a raw loopback socket (3s timeout) and exits non-zero unless the response is 200. The Dockerfile HEALTHCHECK invokes it directly, so docker ps and compose show container health.

The runtime image is distroless, so it has no shell, curl or wget to
probe with. Add a `lens healthcheck` subcommand that GETs /api/health on
the configured PORT over a raw loopback socket (3s timeout) and exits
non-zero unless the response is 200. The Dockerfile HEALTHCHECK invokes
it directly, so `docker ps` and compose show container health.
@bitxwave
bitxwave merged commit e2afab8 into master Oct 19, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant