Skip to content

Commit 75698b1

Browse files
authored
Update rustup in Docker builders (#22803)
1 parent 1765e51 commit 75698b1

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM ubuntu:24.04@sha256:d1e2e92c075e5ca139d51a140fff46f84315c0fdce203eab2807c7e495eff4f9 AS build
22

33
ARG UBUNTU_SNAPSHOT=20260301T000000Z
4-
ARG RUSTUP_VERSION=1.28.1
4+
ARG RUSTUP_VERSION=1.29.2
55

66
ENV HOME="/root"
77
WORKDIR $HOME

‎crates/uv-dev/builder.dockerfile‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ RUN apt-get update \
1717
python3-venv \
1818
&& apt-get clean \
1919
&& rm -rf /var/lib/apt/lists/*
20-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
20+
ARG RUSTUP_VERSION=1.29.2
21+
RUN curl --proto '=https' --tlsv1.2 -sSf \
22+
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/$(uname -m)-unknown-linux-gnu/rustup-init" \
23+
-o rustup-init \
24+
&& chmod +x rustup-init \
25+
&& ./rustup-init -y \
26+
&& rm rustup-init
2127
ENV HOME="/root"
2228
WORKDIR /app
2329
RUN python3 -m venv $HOME/venv-docker

‎crates/uv-trampoline/Dockerfile‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ RUN apt install -y --update ca-certificates && \
3535
&& rm -rf /var/lib/apt/lists/*
3636

3737
# Install Rust nightly toolchain with Windows targets
38-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
39-
sh -s -- -y --default-toolchain=${RUST_NIGHTLY} --profile=minimal
38+
ARG RUSTUP_VERSION=1.29.2
39+
RUN curl --proto '=https' --tlsv1.2 -sSf \
40+
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/$(uname -m)-unknown-linux-gnu/rustup-init" \
41+
-o rustup-init \
42+
&& chmod +x rustup-init \
43+
&& ./rustup-init -y --default-toolchain=${RUST_NIGHTLY} --profile=minimal \
44+
&& rm rustup-init
4045

4146
ENV PATH="${CARGO_HOME}/bin:${PATH}"
4247

0 commit comments

Comments
 (0)