From 04db70662d51675187c6adde9ff58aab54aad900 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 3 Mar 2025 17:17:56 -0600 Subject: [PATCH] Explicitly install the rust toolchain before the target during Docker builds (#11936) Fixes https://github.com/astral-sh/uv/actions/runs/13641331357/job/38131724427 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 744909a18..d8b13f5a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,8 @@ RUN case "$TARGETPLATFORM" in \ COPY rust-toolchain.toml rust-toolchain.toml RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --target $(cat rust_target.txt) --profile minimal --default-toolchain none ENV PATH="$HOME/.cargo/bin:$PATH" -# Installs the correct toolchain version from rust-toolchain.toml and then the musl target +# Install the toolchain then the musl target +RUN rustup toolchain install RUN rustup target add $(cat rust_target.txt) # Build