mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-25 08:43:36 +00:00
Without the change, pip refuses to install into system environment due to changes outlined in PEP 668. The following error is thrown: 'error: externally-managed-environment'. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
29 lines
651 B
Docker
29 lines
651 B
Docker
# 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
|
|
|
|
# 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 pytest-bdd
|