From 950fddd093121f653278ce43c85c08d2945aaeb1 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 6 Mar 2026 23:10:58 +0100 Subject: [PATCH] replace deprecated setup.py install with pip wheel install path --- Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a605e8..cb6731d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ ADD "https://github.com/fail2ban/fail2ban.git#${FAIL2BAN_VERSION}" . FROM alpine:${ALPINE_VERSION} RUN --mount=from=src,target=/tmp/fail2ban,rw \ - apk --update --no-cache add \ + apk add --no-cache \ bash \ curl \ grep \ @@ -25,14 +25,19 @@ RUN --mount=from=src,target=/tmp/fail2ban,rw \ tzdata \ wget \ whois \ - && apk --update --no-cache add -t build-dependencies \ + && apk add --no-cache -t build-dependencies \ build-base \ py3-pip \ py3-setuptools \ + py3-wheel \ python3-dev \ - && cd /tmp/fail2ban \ - && 2to3 -w --no-diffs bin/* fail2ban \ - && python3 setup.py install --without-tests \ + && python3 -m pip install \ + --no-cache-dir \ + --no-build-isolation \ + --use-pep517 \ + --root-user-action=ignore \ + --break-system-packages \ + /tmp/fail2ban \ && apk del build-dependencies \ && rm -rf /etc/fail2ban/jail.d /root/.cache