FreedomBox/.ci/Containerfile.gitlabci
Sunil Mohan Adapa b78b76a692
ci: Add flake8 to gitlabci container
- This is needed to run code quality check in the GitLab CI pipeline. Not sure
how it work before this.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-16 19:36:08 -05:00

30 lines
661 B
Plaintext

# SPDX-License-Identifier: AGPL-3.0-or-later
FROM debian:testing
USER root
COPY . /plinth
WORKDIR /plinth
RUN echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
# Dependencies of the freedombox Debian package
RUN apt-get build-dep -y .
# Build dependencies
RUN apt-get install -y build-essential \
# Test dependencies
sshpass parted \
sudo python3-pip \
python3-flake8
# Module dependencies
RUN apt-get install -y $(./run --list-dependencies)
# Coverage should know that test_functional.py files are tests
RUN pip3 install --break-system-packages splinter