Merge pull request #253 from zeroclaw-labs/docker-debian13

Dockerfile: Update images because runtime image fails
This commit is contained in:
Argenis 2026-02-15 21:57:18 -05:00 committed by GitHub
commit 37890b8714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,7 @@
# syntax=docker/dockerfile:1
# ── Stage 1: Build ────────────────────────────────────────────
# Keep builder and release on Debian 12 to avoid GLIBC ABI drift
# (`rust:1.93-slim` now tracks Debian 13 and can require newer glibc than distroless Debian 12).
FROM rust:1.93-slim-bookworm AS builder
FROM rust:1.93-slim-trixie AS builder
WORKDIR /app
@ -51,7 +49,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 +87,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