Skip to content

Commit 0268caa

Browse files
authored
fix: dockerfile target instead of build (#178)
1 parent 111de00 commit 0268caa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

77
RUN cargo install cargo-chef
88

@@ -33,7 +33,7 @@ COPY --exclude=target . .
3333
RUN --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
3737
RUN apt-get update && apt-get -y upgrade && apt-get install -y \
3838
libssl-dev \
3939
ca-certificates

0 commit comments

Comments
 (0)