git-ents.gitmain
⌘K
foforge
commit a7e5b3b
fix: repair `git-ents-server` container runtime

The runtime binary crash-looped on Fly with a GLIBC_2.39 not found error: the cargo-chef:latest-rust-1 builder moved to Debian trixie while the runtime stayed on bookworm. Pin the builder to bookworm so the linked glibc matches, and install git in the runtime so http-backend can run.

fix: pin cargo-chef builder to bookworm to match runtime glibc fix: install git in the runtime image for http-backend Assisted-by: Claude:claude-opus-4-8

Joseph D. Carpinelli · 2 months ago

Reviews

No reviews of this commit yet — record a verdict below.

Start a review

verdict

crates/git-ents-server/Dockerfile @@ -1,4 +1,4 @@ -FROM lukemathwalker/cargo-chef:latest-rust-1 AS chef +FROM lukemathwalker/cargo-chef:latest-rust-1-bookworm AS chef WORKDIR /app FROM chef AS planner @@ -16,5 +16,8 @@ # We do not need the Rust toolchain to run the binary! FROM debian:bookworm-slim AS runtime WORKDIR /app +RUN apt-get update \ + && apt-get install -y --no-install-recommends git ca-certificates \ + && rm -rf /var/lib/apt/lists/* COPY --from=builder /app/target/release/git-ents-server /usr/local/bin ENTRYPOINT ["/usr/local/bin/git-ents-server"]