Skip to content

Commit

Permalink
fix: set the debian version used to build the Docker image (#2386)
Browse files Browse the repository at this point in the history
This avoid conflicting GLibc version between the build step and the
distroless cc one.
  • Loading branch information
oleastre authored Dec 20, 2023
1 parent 974a05d commit 623756e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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" ]

0 comments on commit 623756e

Please sign in to comment.