containers/rust/Dockerfile
Kaan Barmore-Genç e0346a8cc0
All checks were successful
ci/woodpecker/push/rsync Pipeline was successful
ci/woodpecker/push/rust Pipeline was successful
ci/woodpecker/manual/rsync Pipeline was successful
ci/woodpecker/manual/rust Pipeline was successful
Install llvm-tools-preview
The regular llvm-tools seems to be missing. Weird, it existed yesterday.
2022-11-25 15:33:02 -05:00

18 lines
510 B
Docker

FROM alpine:latest
LABEL org.opencontainers.image.authors="kaan@bgenc.net"
# Install rustup and other base packages we need to build stuff.
# Installing rustup with rustup-init also brings in fmt and clippy.
RUN apk add --no-cache rustup build-base pkgconfig openssl-dev \
&& rustup-init -y
ENV PATH=/root/.cargo/bin:$PATH
# Install cargo llvm-cov and llvm-tools-preview
RUN rustup component add llvm-tools-preview \
&& cargo install cargo-llvm-cov
# Install cargo-audit
RUN cargo install cargo-audit