Skip to content

Commit 780368d

Browse files
committed
Add COPY rust-toolchain.toml before rustup
1 parent 1d6ceb4 commit 780368d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile-cuda

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
1616
RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache && \
1717
chmod +x /usr/local/bin/sccache
1818

19+
COPY rust-toolchain.toml rust-toolchain.toml
1920
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
2021
RUN cargo install cargo-chef --version $CARGO_CHEF --locked
2122

Dockerfile-cuda-all

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
1616
RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache && \
1717
chmod +x /usr/local/bin/sccache
1818

19+
COPY rust-toolchain.toml rust-toolchain.toml
1920
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
2021
RUN cargo install cargo-chef --version $CARGO_CHEF --locked
2122

0 commit comments

Comments
 (0)