Skip to content

Commit 9561fc9

Browse files
authored
Pin cargo-chef installation to 0.1.62 (#469)
1 parent af3a684 commit 9561fc9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Dockerfile-cuda

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
33
ENV SCCACHE=0.5.4
44
ENV RUSTC_WRAPPER=/usr/local/bin/sccache
55
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
68

79
RUN 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

1719
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
1921

2022
FROM base-builder AS planner
2123

Dockerfile-cuda-all

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
33
ENV SCCACHE=0.5.4
44
ENV RUSTC_WRAPPER=/usr/local/bin/sccache
55
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
68

79
RUN 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

1719
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
1921

2022
FROM base-builder AS planner
2123

0 commit comments

Comments
 (0)