File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
33ENV SCCACHE=0.5.4
44ENV RUSTC_WRAPPER=/usr/local/bin/sccache
55ENV PATH="/root/.cargo/bin:${PATH}"
6+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm`
7+ ENV CARGO_CHEF=0.1.62
68
79RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
810 curl \
@@ -15,7 +17,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc
1517 chmod +x /usr/local/bin/sccache
1618
1719RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
18- RUN cargo install cargo-chef --locked
20+ RUN cargo install cargo-chef --version $CARGO_CHEF -- locked
1921
2022FROM base-builder AS planner
2123
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
33ENV SCCACHE=0.5.4
44ENV RUSTC_WRAPPER=/usr/local/bin/sccache
55ENV PATH="/root/.cargo/bin:${PATH}"
6+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm`
7+ ENV CARGO_CHEF=0.1.62
68
79RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
810 curl \
@@ -15,7 +17,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc
1517 chmod +x /usr/local/bin/sccache
1618
1719RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
18- RUN cargo install cargo-chef --locked
20+ RUN cargo install cargo-chef --version $CARGO_CHEF -- locked
1921
2022FROM base-builder AS planner
2123
You can’t perform that action at this time.
0 commit comments