29 lines
673 B
Docker
29 lines
673 B
Docker
# SPDX-FileCopyrightText: 2021 Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
FROM docker.io/rust:latest@sha256:4f1d43c216d995c2f734d7c682bc3e2abe3e110961cda4ae0743ce3944e673a2
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt update && \
|
|
apt install -y \
|
|
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"]
|