Skip to content

Commit 485fc7d

Browse files
committed
build: Install current toolchain.
1 parent 3ed98eb commit 485fc7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV PATH=/root/.cargo/bin:$PATH
1515

1616
COPY .cargo .cargo
1717
COPY 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
6565
RUN cargo install cargo-chef --version ^0.1
6666
WORKDIR /app
6767
COPY 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
115115
WORKDIR /app
116116
COPY 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* .

0 commit comments

Comments
 (0)