File tree 2 files changed +6
-2
lines changed
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
3
3
ENV SCCACHE=0.5.4
4
4
ENV RUSTC_WRAPPER=/usr/local/bin/sccache
5
5
ENV PATH="/root/.cargo/bin:${PATH}"
6
+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.85-bookworm`
7
+ ENV CARGO_CHEF=0.1.71
6
8
7
9
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
8
10
curl \
@@ -15,7 +17,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc
15
17
chmod +x /usr/local/bin/sccache
16
18
17
19
RUN 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
19
21
20
22
FROM base-builder AS planner
21
23
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
3
3
ENV SCCACHE=0.5.4
4
4
ENV RUSTC_WRAPPER=/usr/local/bin/sccache
5
5
ENV PATH="/root/.cargo/bin:${PATH}"
6
+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.85-bookworm`
7
+ ENV CARGO_CHEF=0.1.71
6
8
7
9
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
8
10
curl \
@@ -15,7 +17,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc
15
17
chmod +x /usr/local/bin/sccache
16
18
17
19
RUN 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
19
21
20
22
FROM base-builder AS planner
21
23
You can’t perform that action at this time.
0 commit comments