Add health check endpoints (/health and /ready) for container orchestration liveness and readiness probes. (#104)

* added health endpoint

* formatted files

---------

Co-authored-by: lxowalle <83055338+lxowalle@users.noreply.github.com>
This commit is contained in:
fahadahmadansari111
2026-02-16 09:23:11 +05:30
committed by GitHub
parent 0cb9387cf8
commit 341dbd3007
3 changed files with 179 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ FROM alpine:3.23
RUN apk add --no-cache ca-certificates tzdata curl
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -q --spider http://localhost:18790/health || exit 1
# Copy binary
COPY --from=builder /src/build/picoclaw /usr/local/bin/picoclaw