# SPDX-FileCopyrightText: Copyright (C) 2024 Roland Csaszar # SPDX-License-Identifier: EUPL-1.2 # # Project: CI-Docker-Container # File: Rust.Dockerfile # Date: 01.Dec.2024 # ============================================================================= FROM debian:trixie-slim ENV PATH=/root/.cargo/bin:$PATH ENV DEBIAN_FRONTEND=noninteractive RUN apt update RUN apt dist-upgrade -y RUN apt install -y git build-essential RUN apt install -y libunwind-dev binutils-dev pkg-config libssl-dev RUN apt autoclean RUN apt clean # Rust: rustup + Miri + LLVM-Tools # cargo nextest + cargo make + cargo lcov + cargo mutants RUN mkdir /root/.cargo RUN apt install -y rustup RUN rustup toolchain install nightly || true RUN rustup default nightly RUN echo 'export PATH="$PATH:$HOME/.cargo/bin"' >> /etc/profile RUN rustup component add clippy miri llvm-tools RUN cargo install --force cargo-make RUN cargo install cargo-nextest --locked RUN cargo install cargo-llvm-cov --locked RUN cargo install --locked cargo-mutants RUN cargo clean gc --max-download-age="10 seconds" -Z gc