From 241acb82d973daebc909f022757d819853fd14b9 Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 22 Sep 2026 22:46:02 +0100 Subject: [PATCH] Install wget in backend image so the healthcheck can run The compose healthcheck probes with `wget`, but the runtime image only installed ca-certificates, so every probe died as "executable file not found" and autoheal restarted the container in a ~90s loop. Co-Authored-By: Claude Code --- backend/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 44bda79..c81a1d9 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -44,8 +44,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \ FROM debian:bookworm-slim +# wget is not just for humans: the compose healthcheck probes the server with +# `wget -qO- http://localhost:8080/`, and without it in the image every probe +# fails as "executable file not found" — Docker then marks the container +# unhealthy and autoheal kills it in a ~90s restart loop. RUN apt-get update \ - && apt-get install --yes ca-certificates \ + && apt-get install --yes --no-install-recommends ca-certificates wget \ && rm -rf /var/lib/apt/lists/* WORKDIR /backend