docker: add HEALTHCHECK probing /health

The binary doubles as its own healthcheck client via the SDK's
-healthcheck flag, so the probe works in the scratch image
(no shell, no curl, no wget).
This commit is contained in:
nemunaire 2026-04-26 10:53:12 +07:00
commit 8a62846170
3 changed files with 5 additions and 3 deletions

View file

@ -13,4 +13,6 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certifi
COPY --from=builder /checker-matrix /checker-matrix
USER 65534:65534
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD ["/checker-matrix", "-healthcheck"]
ENTRYPOINT ["/checker-matrix"]