From a40647e651df4ca128e0d3c0739956b82295a278 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Tue, 10 Feb 2026 14:50:30 -0500 Subject: [PATCH] fix(docker): fix sccache stats in Dockerfile.depot (#22033) Co-authored-by: Amp --- Dockerfile.depot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.depot b/Dockerfile.depot index 2f5368b050..26c16ac356 100644 --- a/Dockerfile.depot +++ b/Dockerfile.depot @@ -51,14 +51,14 @@ RUN --mount=type=secret,id=DEPOT_TOKEN,env=SCCACHE_WEBDAV_TOKEN \ --mount=type=cache,target=/usr/local/cargo/registry,sharing=shared \ --mount=type=cache,target=/usr/local/cargo/git,sharing=shared \ --mount=type=cache,target=$SCCACHE_DIR,sharing=shared \ + SCCACHE_WEBDAV_ENDPOINT=https://cache.depot.dev SCCACHE_DIR=/sccache sccache --start-server && \ if [ -n "$RUSTFLAGS" ]; then \ export RUSTFLAGS="$RUSTFLAGS"; \ elif [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ export RUSTFLAGS="-C target-cpu=x86-64-v3 -C target-feature=+pclmulqdq"; \ fi && \ - cargo build --profile $BUILD_PROFILE --features "$FEATURES" --locked --bin $BINARY --manifest-path $MANIFEST_PATH/Cargo.toml - -RUN sccache --show-stats || true + cargo build --profile $BUILD_PROFILE --features "$FEATURES" --locked --bin $BINARY --manifest-path $MANIFEST_PATH/Cargo.toml && \ + sccache --show-stats # Copy binary to a known location (ARG not resolved in COPY) # Note: Custom profiles like maxperf/profiling output to target//, not target/release/