From 0218a9d5c9867e250c011db7b08b9e1a971dee29 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 6 Sep 2023 13:25:20 -0700 Subject: [PATCH] Revert "rw" This reverts commit d6a86515192ccd141cab616916084b73fbf4199a. --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b811d87..45305398 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,8 +69,7 @@ ENV WEB3_PROXY_FEATURES "rdkafka-src" COPY . . # fill the package caches -RUN --mount=type=cache,target=/app/target,rw \ - set -eux -o pipefail; \ +RUN set -eux -o pipefail; \ \ [ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \ cargo \ @@ -84,8 +83,7 @@ COPY --from=rust_foundry /root/.foundry/bin/anvil /root/.foundry/bin/ COPY --from=rust_nextest /root/.cargo/bin/cargo-nextest* /root/.cargo/bin/ # test the application with cargo-nextest -RUN --mount=type=cache,target=/app/target,rw \ - set -eux -o pipefail; \ +RUN set -eux -o pipefail; \ \ export CARGO_TARGET_DIR=target_test; \ [ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \ @@ -104,8 +102,7 @@ FROM rust_with_env as build_app # build the release application # using a "release" profile (which install does by default) is **very** important # TODO: use the "faster_release" profile which builds with `codegen-units = 1` (but compile is SLOW) -RUN --mount=type=cache,target=/app/target,rw \ - set -eux -o pipefail; \ +RUN set -eux -o pipefail; \ \ [ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \ cargo install \