From 9715d9f39e39de898c838d3d887f7d6e59926f08 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 23 Jun 2026 20:13:03 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Switch=20probe-rs/sqlx-cli/sea-o?= =?UTF-8?q?rm-cli=20to=20binstall=20prebuilt-only=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All three tools were using bare `cargo install` with no binstall attempt, forcing full source compilation on every amd64-musl build. probe-rs took ~73 minutes, sqlx-cli and sea-orm-cli each ~82 minutes — totalling ~4 hours of source compilation that crashed the BuildKit container before the amd64 image could be assembled. All three publish x86_64-unknown-linux-musl prebuilts on GitHub releases. Switching to `cargo binstall -y --target ... 2>/dev/null || true` means: - amd64: prebuilt downloaded in seconds; source never attempted - arm64: no aarch64-musl prebuilt; binstall tries source, fails fast (ring/openssl missing musl cross-compile headers), || true skips it - Dockerfile: replace three `cargo install` lines with `cargo binstall` Dockerfile --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2230a98..3aa8342 100644 --- a/Dockerfile +++ b/Dockerfile @@ -156,11 +156,9 @@ RUN --mount=type=cache,id=cargo-registry-native,sharing=shared,target=/usr/local cargo binstall -y --target "${RUST_TARGET}" samply 2>/dev/null || true; \ cargo binstall -y --target "${RUST_TARGET}" flamegraph 2>/dev/null || \ cargo install --target "${RUST_TARGET}" flamegraph || true; \ - cargo install --target "${RUST_TARGET}" probe-rs --features cli 2>/dev/null || true; \ - cargo install --target "${RUST_TARGET}" sqlx-cli \ - --no-default-features --features rustls,postgres,mysql,sqlite 2>/dev/null || true; \ - cargo install --target "${RUST_TARGET}" sea-orm-cli \ - --no-default-features --features codegen,sqlx-mysql,sqlx-postgres,sqlx-sqlite,runtime-tokio-rustls 2>/dev/null || true + cargo binstall -y --target "${RUST_TARGET}" probe-rs 2>/dev/null || true; \ + cargo binstall -y --target "${RUST_TARGET}" sqlx-cli 2>/dev/null || true; \ + cargo binstall -y --target "${RUST_TARGET}" sea-orm-cli 2>/dev/null || true FROM ${PULL_URL}:${DISTRO_VERSION} AS build ARG TZ