Install wget in backend image so the healthcheck can run
Deploy with Docker Compose / deploy (push) Successful in 48s
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:
+5
-1
@@ -44,8 +44,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
|
|
||||||
FROM debian:bookworm-slim
|
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 \
|
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/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /backend
|
WORKDIR /backend
|
||||||
|
|||||||
Reference in New Issue
Block a user