Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rust/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
# Install sccache for this image \
curl --retry 10 -LsSf "${CARGO_BINSTALL_URL_BASE}/cargo-binstall-${!BUILDARCH}-unknown-linux-musl.tgz" \
| tar -xzC /usr/local/bin/ && \
cargo binstall -y -q sccache --version 0.3 --no-symlinks --install-path /usr/local/bin \
cargo binstall -y -q sccache --version 0.5.4 --no-symlinks --install-path /usr/local/bin \
--target=${!BUILDARCH}-unknown-linux-musl && \
echo "installed build build image sccache" && \
if [ -n "$SCCACHE_BUCKET" ]; then export RUSTC_WRAPPER=/usr/local/bin/sccache; fi && \
if [ -z "$SCCACHE_ENDPOINT" ]; then unset SCCACHE_ENDPOINT; fi && \
if [ ! -z ${RUSTC_WRAPPER+x} ]; then echo "starting sccache server"; while sccache --start-server; do echo "starting sccache server"; done; fi; \
# Add sccache cargo-flamegraph, cargo-audit, cargo-cache, etc \
cargo install -q sccache --root /out/tools --version 0.3.3 \
cargo install -q sccache --root /out/tools --version 0.5.4 \
--features=azure,s3,openssl/vendored --no-default-features \
--target=${!TARGETARCH}-unknown-linux-musl && \
echo "built build image sccache" && \
Expand Down Expand Up @@ -180,7 +180,7 @@ RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \


## Install static Zlib
ARG ZLIB_VERSION=1.2.13
ARG ZLIB_VERSION=1.3

RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
if [ -z "$SCCACHE_BUCKET" ]; then unset CC_WRAPPER; fi; \
Expand Down