From 554df2fbd8222bc57c40dbf2cbde186f7be9050f Mon Sep 17 00:00:00 2001 From: Matthew Mellor Date: Wed, 4 Mar 2026 20:22:19 -0600 Subject: [PATCH] fix(container): add clippy and rustfmt rustup components The rust:1-slim-bookworm base image does not ship clippy or rustfmt by default. Add `rustup component add clippy rustfmt` in the builder stage so both tools are available in the final image. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 42031f5..7328d91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ RUN go install golang.org/x/vuln/cmd/govulncheck@latest # Provides Rust toolchain (rustup + cargo + rustc + clippy + rustfmt) and # installs cargo-audit and cargo-deny via cargo-binstall. FROM rust:1-slim-bookworm AS rust-builder +RUN rustup component add clippy rustfmt RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates \ && rm -rf /var/lib/apt/lists/* RUN curl -L --proto '=https' --tlsv1.2 -sSf \