2022-11-25 16:54:38 -06:00
|
|
|
FROM debian:latest
|
2022-11-24 23:39:35 -06:00
|
|
|
|
|
|
|
LABEL org.opencontainers.image.authors="kaan@bgenc.net"
|
|
|
|
|
2022-11-25 16:54:38 -06:00
|
|
|
# Install dependencies for rustup & cargo-audit
|
|
|
|
RUN apt update && apt install curl wget build-essential gcc make pkg-config libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libsoup2.4-dev libjavascriptcoregtk-4.0-dev libwebkit2gtk-4.0-dev -y
|
|
|
|
# Install rustup
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh \
|
|
|
|
&& sh rustup-init.sh -y \
|
|
|
|
&& rm rustup-init.sh
|
|
|
|
|
|
|
|
# Install binstall
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSfL https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | tar -zx -C $HOME/.cargo/bin/
|
2022-11-24 23:39:35 -06:00
|
|
|
|
|
|
|
ENV PATH=/root/.cargo/bin:$PATH
|
|
|
|
|
2022-11-25 14:33:02 -06:00
|
|
|
# Install cargo llvm-cov and llvm-tools-preview
|
|
|
|
RUN rustup component add llvm-tools-preview \
|
2022-11-25 16:54:38 -06:00
|
|
|
&& cargo binstall cargo-llvm-cov -y
|
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
|