containers/rust/Dockerfile

18 lines
510 B
Docker
Raw Normal View History

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