Install wget in backend image so the healthcheck can run
Deploy with Docker Compose / deploy (push) Successful in 48s

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 <[email protected]>
This commit is contained in:
2026-09-22 22:46:02 +01:00
co-authored by Claude Code
parent 50c2fdfdd1
commit 241acb82d9
+5 -1
View File
@@ -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