Skip to content

Commit a25b9c8

Browse files
committed
build(policy-controller): produce auditable binaries
1 parent c549768 commit a25b9c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

policy-controller/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
FROM --platform=$BUILDPLATFORM ghcr.io/linkerd/dev:v47-rust-musl AS controller
1+
FROM --platform=$BUILDPLATFORM ghcr.io/linkerd/dev:v46-rust-musl AS controller
22
ARG BUILD_TYPE="release"
33
WORKDIR /build
44
RUN mkdir -p target/bin
55
COPY Cargo.toml Cargo.lock .
66
COPY policy-controller policy-controller
77
RUN cargo new policy-test --lib
8+
ENV CARGO="cargo auditable"
89
RUN --mount=type=cache,target=/usr/local/cargo/registry \
9-
cargo fetch
10+
just-cargo fetch
1011
ARG TARGETARCH
1112
# Enable tokio runtime metrics
1213
ENV RUSTFLAGS="--cfg tokio_unstable"

0 commit comments

Comments
 (0)