File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ ENV PATH=/root/.cargo/bin:$PATH
1515
1616COPY .cargo .cargo
1717COPY rust-toolchain.toml .
18- RUN rustup update
18+ RUN rustup update && rustup toolchain install
1919# RUN cargo install cargo-chef --version ^0.1
2020
2121# FROM base-gnu AS plan-gnu
@@ -65,7 +65,7 @@ RUN apt install --no-install-recommends -y libssl-dev pkg-config musl-tools wget
6565RUN cargo install cargo-chef --version ^0.1
6666WORKDIR /app
6767COPY rust-toolchain.toml .
68- RUN rustup update && rustup target add x86_64-unknown-linux-musl
68+ RUN rustup update && rustup toolchain install && rustup target add x86_64-unknown-linux-musl
6969
7070# FROM base-musl-amd64 AS plan-musl-amd64
7171# COPY Cargo* .
@@ -114,7 +114,7 @@ RUN apt install --no-install-recommends -y libssl-dev pkg-config musl-tools wget
114114# RUN cargo install cargo-chef --version ^0.1
115115WORKDIR /app
116116COPY rust-toolchain.toml .
117- RUN rustup update && rustup target add aarch64-unknown-linux-musl
117+ RUN rustup update && rustup toolchain install && rustup target add aarch64-unknown-linux-musl
118118
119119# FROM base-musl-arm64 AS plan-musl-arm64
120120# COPY Cargo* .
You can’t perform that action at this time.
0 commit comments