mirror of
https://codeberg.org/JasterV/docker.git
synced 2026-04-26 18:10:02 +00:00
21 lines
704 B
Docker
21 lines
704 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 \
|
|
git \
|
|
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
|