File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22# ## STAGE 0: Create base chef image for building
33# ## Use a Debian bookworm-based Rust image so GLIBC matches the final runtime (bookworm ships glibc 2.36)
44# ## cargo-chef is then installed into this pinned base
5- FROM --platform=$BUILDPLATFORM rust:bookworm AS chef
5+ FROM --platform=$TARGETPLATFORM rust:bookworm AS chef
66
77RUN cargo install cargo-chef
88
@@ -33,7 +33,7 @@ COPY --exclude=target . .
3333RUN --mount=type=ssh cargo build --release --bin zenith-builder-example
3434
3535# Stage 3: Final image for running in the env
36- FROM --platform=$BUILDPLATFORM debian:bookworm-slim
36+ FROM --platform=$TARGETPLATFORM debian:bookworm-slim
3737RUN apt-get update && apt-get -y upgrade && apt-get install -y \
3838 libssl-dev \
3939 ca-certificates
You can’t perform that action at this time.
0 commit comments