FROM rust:1.95.0-slim # Install system dependencies for cargo-binstall and common rust crates RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ build-essential \ ca-certificates \ pkg-config \ libssl-dev \ && rm -rf /var/lib/apt/lists/* RUN rustup set profile minimal && \ rustup component add clippy rustfmt rust-src rust-analyzer RUN rustup default 1.95.0-x86_64-unknown-linux-gnu RUN curl -Lskj https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | tar -xz -C /usr/local/bin RUN cargo binstall --no-confirm cargo-make cargo-deny cargo-nextest ENV CARGO_TERM_COLOR=always