diff --git a/Dockerfile.depot b/Dockerfile.depot index 26c16ac356..8ed821773c 100644 --- a/Dockerfile.depot +++ b/Dockerfile.depot @@ -51,7 +51,8 @@ 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 && \ + export RUSTC_WRAPPER=sccache 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 \