From aca4285a26762f999cc01e6e9bfb981ac28c12a8 Mon Sep 17 00:00:00 2001 From: ck <> Date: Wed, 8 Jul 2026 06:41:39 +0000 Subject: [PATCH] build: Use distro rustup rustup is packaged in Ubuntu noble (universe), so install it via apt instead of piping the rustup-init script from sh.rustup.rs. Removes one remote connection from the docker build. add build-arg: RUST_VERSION=1.90 --- Dockerfile.release | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.release b/Dockerfile.release index e79baaaa0..5f0dd0daf 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ git \ qemu-user-static \ + rustup \ wget \ file \ jq \ @@ -64,10 +65,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Rust: native ARM64 toolchain so the Tauri CLI runs without emulation, # plus the x86_64 target for the actual compiled output. -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ - sh -s -- -y --default-toolchain 1.90 -ENV PATH="/root/.cargo/bin:${PATH}" -RUN rustup target add x86_64-unknown-linux-gnu +ARG RUST_VERSION=1.90 +RUN rustup default "${RUST_VERSION}" \ + && rustup target add x86_64-unknown-linux-gnu # Node.js 24 (ARM64, runs natively); matches the engines requirement in package.json RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \