diff --git a/build.Dockerfile b/build.Dockerfile index 8f4cda2f57..fdc03795d2 100644 --- a/build.Dockerfile +++ b/build.Dockerfile @@ -68,9 +68,9 @@ WORKDIR $WORKHOME/worker COPY . . -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 \ +RUN --mount=type=cache,id=cargo-registry-cache,target=/opt/rust/registry/cache,sharing=private \ + --mount=type=cache,id=cargo-registry-index,target=/opt/rust/registry/index,sharing=private \ + --mount=type=cache,id=cargo-git,target=/opt/rust/git/db,sharing=private \ --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