mirror of
https://codeberg.org/JasterV/docker.git
synced 2026-04-26 18:10:02 +00:00
19 lines
714 B
Docker
19 lines
714 B
Docker
FROM rust:1.93.1-slim-bookworm
|
|
|
|
# Install system dependencies for cargo-binstall and common rust crates
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
ca-certificates \
|
|
pkg-config \
|
|
libssl-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Pre-install rustup components
|
|
RUN rustup component add clippy rustfmt
|
|
|
|
# Install cargo-binstall and your tools
|
|
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
|
|
|
|
# Set environment variables so they don't need to be in .woodpecker.yml
|
|
ENV CARGO_TERM_COLOR=always
|