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