Add CI files

This commit is contained in:
Matteo Settenvini 2022-09-05 23:18:21 +02:00
parent 571aa90d6a
commit 52f0cf9111
Signed by: matteo
GPG key ID: 8576CC1AD97D42DF
2 changed files with 89 additions and 0 deletions

28
Dockerfile Normal file
View file

@ -0,0 +1,28 @@
# 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 \
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"]