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.
This commit is contained in:
Olivier Samyn 2023-12-20 14:00:07 +01:00 committed by GitHub
parent 974a05d7be
commit 623756e7e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ]