skip cargo-binstall for now
This commit is contained in:
parent
11dc95e1bc
commit
7277caae6a
19
Dockerfile
19
Dockerfile
@ -7,21 +7,22 @@ FROM rust:1-bullseye AS chef
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# cargo binstall provides a low-complexity mechanism for installing rust binaries as an alternative to building from source (via cargo install) or manually downloading packages.
|
# # cargo binstall provides a low-complexity mechanism for installing rust binaries as an alternative to building from source (via cargo install) or manually downloading packages.
|
||||||
# This is intended to work with existing CI artifacts and infrastructure, and with minimal overhead for package maintainers.
|
# # This is intended to work with existing CI artifacts and infrastructure, and with minimal overhead for package maintainers.
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
# # TODO: more mount type cache?
|
||||||
--mount=type=cache,target=/app/target \
|
# # TODO: this works on some architectures, but is failing on others.
|
||||||
cargo install cargo-binstall
|
# RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
|
# cargo install cargo-binstall
|
||||||
|
|
||||||
# cache the dependencies of your Rust project and speed up your Docker builds.
|
# cache the dependencies of your Rust project and speed up your Docker builds.
|
||||||
|
# TODO: more mount type cache?
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
--mount=type=cache,target=/app/target \
|
cargo install cargo-chef
|
||||||
cargo binstall --no-confirm --no-symlinks --secure cargo-chef
|
|
||||||
|
|
||||||
# a next-generation test runner for Rust projects.
|
# a next-generation test runner for Rust projects.
|
||||||
|
# TODO: more mount type cache?
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
--mount=type=cache,target=/app/target \
|
cargo install cargo-nextest
|
||||||
cargo binstall --no-confirm --no-symlinks --secure cargo-nextest
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# prepare examines your project and builds a recipe that captures the set of information required to build your dependencies.
|
# prepare examines your project and builds a recipe that captures the set of information required to build your dependencies.
|
||||||
|
Loading…
Reference in New Issue
Block a user