2022-09-05 23:18:21 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
FROM docker.io/rust:latest@sha256:df962ca4f985f8f6b81b7c02f66348d294974d8cafc2d0f15104c472623d433e
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
apt install -y \
|
2022-09-12 00:44:43 +02:00
|
|
|
libc-bin \
|
2022-09-05 23:31:34 +02:00
|
|
|
libclang-dev \
|
2022-09-05 23:18:21 +02:00
|
|
|
libssl-dev \
|
|
|
|
pkg-config \
|
|
|
|
python3-pip \
|
|
|
|
&& \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN pip3 install reuse
|
|
|
|
|
|
|
|
RUN rustup component add rustfmt
|
|
|
|
|
|
|
|
RUN cargo install --locked -f -- \
|
|
|
|
cargo-tarpaulin \
|
|
|
|
cargo-deny \
|
|
|
|
cargo2junit \
|
|
|
|
&& \
|
|
|
|
rm -rf "${HOME}/.cargo/registry" "${HOME}/.cargo/git"
|
|
|
|
|
|
|
|
ENTRYPOINT []
|
|
|
|
CMD ["/bin/bash"]
|