diff --git a/Dockerfile b/Dockerfile index 0efafb12..349f1f62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,7 +57,7 @@ ENV WEB3_PROXY_FEATURES "rdkafka-src,connectinfo" FROM rust as build_tests # check hakari and test the application with cargo-nextest -RUN --mount=type=bind,target=. \ +RUN --mount=type=bind,target=.,rw \ --mount=type=cache,target=/usr/local/cargo/git \ --mount=type=cache,target=/usr/local/cargo/registry \ --mount=type=cache,target=/app/target,sharing=private \ @@ -72,7 +72,7 @@ FROM rust 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=bind,target=. \ +RUN --mount=type=bind,target=.,rw \ --mount=type=cache,target=/usr/local/cargo/git \ --mount=type=cache,target=/usr/local/cargo/registry \ --mount=type=cache,target=/app/target,sharing=private \