diff --git a/build.Dockerfile b/build.Dockerfile index ef77069b9c..8f4cda2f57 100644 --- a/build.Dockerfile +++ b/build.Dockerfile @@ -68,7 +68,8 @@ WORKDIR $WORKHOME/worker COPY . . -RUN --mount=type=cache,id=cargo-registry,target=/opt/rust/registry \ +RUN --mount=type=cache,id=cargo-registry-cache,target=/opt/rust/registry/cache \ + --mount=type=cache,id=cargo-registry-index,target=/opt/rust/registry/index \ --mount=type=cache,id=cargo-git,target=/opt/rust/git/db \ --mount=type=cache,id=cargo-sccache-${WORKER_MODE}${ADDITIONAL_FEATURES},target=/home/ubuntu/.cache/sccache \ echo ${FINGERPRINT} && make && make identity && cargo test --release && sccache --show-stats