Dockerfile: Update runtime images to debian 13

Dockerfile builder image 1.93-slim is (now?) based on debian trixie (13)

The production runtime image was created based on debian-12 which did
not have the version of libc that zeroclaw was built against and that
caused this error:

[zeroclaw] | zeroclaw: /lib/x86_64-linux-gnu/libc.so.6: version
`GLIBC_2.39' not found (required by zeroclaw)

Upgraded runtime image to debian 13 to solve the issue
This commit is contained in:
Gunnar Andersson 2026-02-15 18:31:00 +01:00
parent b367d41b63
commit 0104e46e60

View file

@ -51,7 +51,7 @@ EOF
RUN chown -R 65534:65534 /zeroclaw-data
# ── Stage 3: Development Runtime (Debian) ────────────────────
FROM debian:bookworm-slim AS dev
FROM debian:trixie-slim AS dev
# Install runtime dependencies + basic debug tools
RUN apt-get update && apt-get install -y \
@ -89,7 +89,7 @@ ENTRYPOINT ["zeroclaw"]
CMD ["gateway", "--port", "3000", "--host", "[::]"]
# ── Stage 4: Production Runtime (Distroless) ─────────────────
FROM gcr.io/distroless/cc-debian12:nonroot AS release
FROM gcr.io/distroless/cc-debian13:nonroot AS release
COPY --from=builder /app/target/release/zeroclaw /usr/local/bin/zeroclaw
COPY --from=permissions /zeroclaw-data /zeroclaw-data