From f2eabc0df696f82ee7e323aa50bfbc52aeba5dd3 Mon Sep 17 00:00:00 2001 From: Florian Pitance <54334437+fl0ppy-d1sk@users.noreply.github.com> Date: Tue, 15 Nov 2022 16:49:18 +0100 Subject: [PATCH] fix centos python dep bug --- src/linux/Dockerfile-centos | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/linux/Dockerfile-centos b/src/linux/Dockerfile-centos index 203e3da48..65625c1e2 100644 --- a/src/linux/Dockerfile-centos +++ b/src/linux/Dockerfile-centos @@ -31,7 +31,9 @@ RUN dnf install -y python39-pip brotli brotli-devel gperftools-devel perl libxsl chmod +x /tmp/bunkerweb/deps/install.sh && \ bash /tmp/bunkerweb/deps/install.sh && \ mkdir /usr/share/bunkerweb/deps/python && \ - pip3.9 install --no-cache-dir --require-hashes --target /usr/share/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt + # Dirty fix to avoid errors with --target and packages same namespace + cp -r /usr/lib64/python3.9/* /usr/lib/python3.9/ && \ + PYTHONPLATLIBDIR=lib pip3.9 install --no-cache-dir --require-hashes --target /usr/share/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt # Copy files # can't exclude deps from . so we are copying everything by hand