From bd4ad00159170b0c71abdcfc8c9605bcaf65429e Mon Sep 17 00:00:00 2001 From: Octoturge Date: Mon, 10 Aug 2026 07:52:01 +0200 Subject: [PATCH] Fix worker Docker build: pin builder to bookworm to match runtime glibc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rust:1.97 (unsuffixed) now resolves to a trixie base, whose newer glibc produced a binary the bookworm-slim runtime stage couldn't load ("GLIBC_2.38 not found (required by mcmapper-worker)"), crash-looping the container on every start. Pinning the builder to rust:1.97-bookworm matches the runtime's Debian release. Confirmed by rebuilding and running the real image — worker now starts and runs (its next failure is an unrelated, expected MinIO connectivity gap, not this). --- worker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/worker/Dockerfile b/worker/Dockerfile index d3e5068..ebe5e49 100644 --- a/worker/Dockerfile +++ b/worker/Dockerfile @@ -1,4 +1,7 @@ -FROM rust:1.97 AS build +# Pinned to -bookworm to match the bookworm-slim runtime stage below — the plain `rust:1.97` tag +# now resolves to a trixie base, whose newer glibc produced binaries the runtime's older glibc +# couldn't load ("GLIBC_2.38 not found"), confirmed by actually running the built image. +FROM rust:1.97-bookworm AS build WORKDIR /app COPY . . RUN cargo build --release