mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix centos python dep bug
This commit is contained in:
parent
d199f124b8
commit
f2eabc0df6
1 changed files with 3 additions and 1 deletions
|
|
@ -31,7 +31,9 @@ RUN dnf install -y python39-pip brotli brotli-devel gperftools-devel perl libxsl
|
||||||
chmod +x /tmp/bunkerweb/deps/install.sh && \
|
chmod +x /tmp/bunkerweb/deps/install.sh && \
|
||||||
bash /tmp/bunkerweb/deps/install.sh && \
|
bash /tmp/bunkerweb/deps/install.sh && \
|
||||||
mkdir /usr/share/bunkerweb/deps/python && \
|
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
|
# Copy files
|
||||||
# can't exclude deps from . so we are copying everything by hand
|
# can't exclude deps from . so we are copying everything by hand
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue