From fe4a12742202fcf17e736a2492e05d3552291470 Mon Sep 17 00:00:00 2001 From: Miles Ward Date: Sun, 24 May 2026 13:49:09 -0400 Subject: [PATCH] fix docker build toolchain selection Do not copy rust-toolchain.toml into the Docker build stage so the release image uses the Rust toolchain provided by the base image instead of downloading latest stable inside the container. --- deploy/docker/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy/docker/Dockerfile b/deploy/docker/Dockerfile index d14fb88..ed2f2d0 100644 --- a/deploy/docker/Dockerfile +++ b/deploy/docker/Dockerfile @@ -33,7 +33,12 @@ WORKDIR /src # to silently serve stale stub binaries when cargo's fingerprint didn't # notice the source swap. A single build is ~1.5 min longer on cold cache # but guarantees the binary reflects the sources we copied. -COPY Cargo.toml rust-toolchain.toml ./ +# Do not copy rust-toolchain.toml into the image. The local workspace pins +# developer tooling, but inside Docker we intentionally use the Rust version +# selected by the base image. Copying rust-toolchain.toml with +# `channel = "stable"` makes rustup download a second full toolchain during +# `cargo build`, which is slow and can exhaust small Colima/CI disks. +COPY Cargo.toml ./ COPY crates/ crates/ COPY --from=fetch /src/assets/ipxe /src/assets/ipxe