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:
parent
7e0f29075e
commit
c0a9623ee0
3 changed files with 5 additions and 3 deletions
|
|
@ -12,4 +12,6 @@ FROM scratch
|
|||
COPY --from=builder /checker-delegation /checker-delegation
|
||||
USER 65534:65534
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD ["/checker-delegation", "-healthcheck"]
|
||||
ENTRYPOINT ["/checker-delegation"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue