docker/rust.Dockerfile
2026-03-04 01:12:57 +01:00

20 lines
694 B
Docker

FROM rust:1.93.1-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.93.1-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