2022-07-01 22:36:04 +02:00
|
|
|
# SPDX-FileCopyrightText: 2021 Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2022-08-01 00:20:52 +02:00
|
|
|
FROM docker.io/rust:latest@sha256:4f1d43c216d995c2f734d7c682bc3e2abe3e110961cda4ae0743ce3944e673a2
|
2022-07-01 22:36:04 +02:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
apt install -y \
|
|
|
|
libssl-dev \
|
|
|
|
pkg-config \
|
2022-08-01 00:20:52 +02:00
|
|
|
python3-pip \
|
2022-07-01 22:36:04 +02:00
|
|
|
&& \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2022-08-01 00:20:52 +02:00
|
|
|
RUN pip3 install reuse
|
|
|
|
|
|
|
|
RUN rustup component add rustfmt
|
|
|
|
|
|
|
|
RUN cargo install --locked -f -- \
|
2022-07-01 22:36:04 +02:00
|
|
|
cargo-tarpaulin \
|
2022-08-01 00:20:52 +02:00
|
|
|
cargo-deny \
|
2022-07-01 22:36:04 +02:00
|
|
|
cargo2junit \
|
|
|
|
&& \
|
|
|
|
rm -rf "${HOME}/.cargo/registry" "${HOME}/.cargo/git"
|
|
|
|
|
|
|
|
ENTRYPOINT []
|
|
|
|
CMD ["/bin/bash"]
|