Add --break-system-packages so pip works on system Python
This commit is contained in:
@@ -14,8 +14,8 @@ RUN --mount=type=cache,target=/root/.cache \
|
||||
&& apk add --no-cache --virtual .mailman-rundeps bash sassc tzdata \
|
||||
postgresql-client mysql-client py3-mysqlclient curl mailcap gettext \
|
||||
python3 py3-pip xapian-core xapian-bindings-python3 libffi pcre-dev py-cryptography \
|
||||
&& python3 -m pip install -U 'Django<4.2' pip setuptools wheel \
|
||||
&& pip install -r /tmp/requirements.txt \
|
||||
&& python3 -m pip install --break-system-packages -U 'Django<4.2' pip setuptools wheel \
|
||||
&& pip install --break-system-packages -r /tmp/requirements.txt \
|
||||
whoosh \
|
||||
uwsgi \
|
||||
psycopg2 \
|
||||
|
||||
@@ -16,8 +16,8 @@ RUN --mount=type=cache,target=/root/.cache \
|
||||
&& apk add --no-cache --virtual .mailman-rundeps bash sassc pcre-dev tzdata \
|
||||
python3 py3-pip postgresql-client mysql-client py3-mysqlclient \
|
||||
curl mailcap xapian-core xapian-bindings-python3 libffi gettext py-cryptography \
|
||||
&& python3 -m pip install -U pip setuptools wheel \
|
||||
&& python3 -m pip install -U \
|
||||
&& python3 -m pip install --break-system-packages -U pip setuptools wheel \
|
||||
&& python3 -m pip install --break-system-packages -U \
|
||||
git+https://gitlab.com/mailman/mailmanclient \
|
||||
git+https://gitlab.com/mailman/postorius \
|
||||
git+https://gitlab.com/mailman/hyperkitty \
|
||||
@@ -32,8 +32,8 @@ RUN --mount=type=cache,target=/root/.cache \
|
||||
tzdata \
|
||||
diskcache \
|
||||
django-utils-six \
|
||||
&& python3 -m pip install -U 'Django<4.2' \
|
||||
&& python3 -m pip install -U \
|
||||
&& python3 -m pip install --break-system-packages -U 'Django<4.2' \
|
||||
&& python3 -m pip install --break-system-packages -U \
|
||||
git+https://gitlab.com/mailman/django-mailman3 \
|
||||
&& apk del .build-deps \
|
||||
&& addgroup -S mailman \
|
||||
|
||||
Reference in New Issue
Block a user