From f21b2387638d4a7a1a4aa5fdf10c6495014722e1 Mon Sep 17 00:00:00 2001 From: Areeb Ahmed Date: Fri, 29 May 2026 16:54:32 +0300 Subject: [PATCH] override healthcheck Signed-off-by: Areeb Ahmed --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index ebafc25c7..47fd35703 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,6 +80,12 @@ ENV MODELS_PATH=/models # Label the image so that it's hidden on cloud engines. LABEL com.docker.desktop.service="model-runner" +EXPOSE ${MODEL_RUNNER_PORT} + +# Override the healthcheck inherited from the upstream llama.cpp image. +HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ + CMD curl -f "http://localhost:${MODEL_RUNNER_PORT}/engines/status" || exit 1 + ENTRYPOINT ["/app/model-runner"] # --- vLLM variant ---