From 623756e7e34e96536f3a51f6815a9343b598ded7 Mon Sep 17 00:00:00 2001 From: Olivier Samyn Date: Wed, 20 Dec 2023 14:00:07 +0100 Subject: [PATCH] fix: set the debian version used to build the Docker image (#2386) This avoid conflicting GLibc version between the build step and the distroless cc one. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 369b10ca3b..87b3ec247b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:slim AS builder +FROM rust:slim-bookworm AS builder RUN apt-get update -y && \ apt-get install -y make g++ libssl-dev && \ @@ -10,6 +10,6 @@ COPY . . RUN cargo build --release --target x86_64-unknown-linux-gnu -FROM gcr.io/distroless/cc +FROM gcr.io/distroless/cc-debian12 COPY --from=builder /app/target/x86_64-unknown-linux-gnu/release/zola /bin/zola ENTRYPOINT [ "/bin/zola" ]