From 00991d67b8a0d20eaa8193b41a090c800fef908f Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 7 Oct 2023 00:54:15 -0700 Subject: [PATCH] fetch doesnt need target dirs --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc1fbfb1..5c8cca5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -90,13 +90,10 @@ COPY . . # TODO: clean needed because of rust upgrade and jenkins caches :'( RUN --mount=type=cache,target=/root/.cargo/git \ --mount=type=cache,target=/root/.cargo/registry \ - --mount=type=cache,target=/app/target \ - --mount=type=cache,target=/app/target_test \ set -eux -o pipefail; \ \ [ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \ - cargo --locked fetch; \ - CARGO_TARGET_DIR=target_test cargo --locked fetch + cargo --locked fetch # build tests (done its in own FROM so that it can run in parallel) FROM rust_with_env as build_tests