rw
This commit is contained in:
parent
0dcd368ac7
commit
d6a8651519
@ -69,7 +69,8 @@ ENV WEB3_PROXY_FEATURES "rdkafka-src"
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# fill the package caches
|
# fill the package caches
|
||||||
RUN set -eux -o pipefail; \
|
RUN --mount=type=cache,target=/app/target,rw \
|
||||||
|
set -eux -o pipefail; \
|
||||||
\
|
\
|
||||||
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
|
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
|
||||||
cargo \
|
cargo \
|
||||||
@ -83,7 +84,8 @@ COPY --from=rust_foundry /root/.foundry/bin/anvil /root/.foundry/bin/
|
|||||||
COPY --from=rust_nextest /root/.cargo/bin/cargo-nextest* /root/.cargo/bin/
|
COPY --from=rust_nextest /root/.cargo/bin/cargo-nextest* /root/.cargo/bin/
|
||||||
|
|
||||||
# test the application with cargo-nextest
|
# test the application with cargo-nextest
|
||||||
RUN set -eux -o pipefail; \
|
RUN --mount=type=cache,target=/app/target,rw \
|
||||||
|
set -eux -o pipefail; \
|
||||||
\
|
\
|
||||||
export CARGO_TARGET_DIR=target_test; \
|
export CARGO_TARGET_DIR=target_test; \
|
||||||
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
|
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
|
||||||
@ -102,7 +104,8 @@ FROM rust_with_env as build_app
|
|||||||
# build the release application
|
# build the release application
|
||||||
# using a "release" profile (which install does by default) is **very** important
|
# 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)
|
# TODO: use the "faster_release" profile which builds with `codegen-units = 1` (but compile is SLOW)
|
||||||
RUN set -eux -o pipefail; \
|
RUN --mount=type=cache,target=/app/target,rw \
|
||||||
|
set -eux -o pipefail; \
|
||||||
\
|
\
|
||||||
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
|
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
|
||||||
cargo install \
|
cargo install \
|
||||||
|
Loading…
Reference in New Issue
Block a user