Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Nov 10, 2023
1 parent c8ba954 commit 340a616
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ COPY . .
RUN --mount=type=cache,id=cargo,target=/usr/local/cargo/registry \
just fetch
ENV CARGO_INCREMENTAL=0
# -C split-debuginfo=unpacked
ENV RUSTFLAGS="-D warnings -A deprecated -C debuginfo=2"
ARG TARGETARCH="amd64"
ARG PROFILE="release"
ARG LINKERD2_PROXY_VERSION=""
ARG LINKERD2_PROXY_VENDOR=""
RUN --mount=type=cache,id=cargo,target=/usr/local/cargo/registry \
just arch="$TARGETARCH" features="$PROXY_FEATURES" profile="$PROFILE" build && \
mkdir -p /out && \
mv $(just --evaluate profile="$PROFILE" _target_bin) /out/linkerd2-proxy
/usr/bin/time -v just arch="$TARGETARCH" features="$PROXY_FEATURES" profile="$PROFILE" build && \
bin=$(just --evaluate profile="$PROFILE" _target_bin) ; \
du -sh "$bin" "$bin".dbg && \
mkdir -p /out && mv "$bin" /out/linkerd2-proxy

FROM $LINKERD2_IMAGE as linkerd2

Expand Down

0 comments on commit 340a616

Please sign in to comment.