ratus icon indicating copy to clipboard operation
ratus copied to clipboard

Missing docker HealthCheck

Open Masterwow3 opened this issue 1 year ago • 0 comments

Is: Currently the dockerfile does not contain a health check Wish: Would it be possible to include a health check in the dockerfile?

My current workaround:

ARG BASE_IMAGE="hyperonym/ratus"

FROM alpine as builder
ADD https://github.com/moparisthebest/static-curl/releases/download/v8.7.1/curl-amd64 /curl
RUN chmod 700 /curl

FROM ${BASE_IMAGE}
COPY --from=builder /curl /curl

EXPOSE 80/tcp
HEALTHCHECK --interval=60s --timeout=10s --start-period=5s CMD ["/curl", "-sSf", "http://127.0.0.1/readyz"]

Masterwow3 avatar May 07 '24 14:05 Masterwow3