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:
committed by
GitHub
parent
0cb9387cf8
commit
341dbd3007
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user