docker/rust/Dockerfile
Victor Martinez Montané b2fcf71157 feat: refactor scripts & bump versions (#1)
Co-authored-by: JasterV <49537445+JasterV@users.noreply.github.com>
Reviewed-on: https://codeberg.org/JasterV/docker/pulls/1
2026-04-23 01:52:28 +02:00

20 lines
694 B
Docker

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