optimize build

This commit is contained in:
t3chn0m4g3 2024-11-29 16:47:57 +01:00
parent 646b0fddd3
commit a0687e7c92
2 changed files with 3 additions and 2 deletions

View file

@ -85,6 +85,7 @@ RUN apk --no-cache -U add build-base \
libxslt-dev \ libxslt-dev \
mariadb-dev \ mariadb-dev \
pkgconfig \ pkgconfig \
py3-pip \
python3-dev \ python3-dev \
wget && \ wget && \
rm -rf /root/* \ rm -rf /root/* \

View file

@ -45,8 +45,8 @@ RUN apk --no-cache -U add \
git checkout 49c7c4aac87603e0d2449501c300841a1f59fd0f && \ git checkout 49c7c4aac87603e0d2449501c300841a1f59fd0f && \
mkdir -p log && \ mkdir -p log && \
cp /root/dist/requirements.txt . && \ cp /root/dist/requirements.txt . && \
pip3 install --break-system-packages --upgrade pip && \ pip3 install --break-system-packages --upgrade --no-cache-dir pip && \
pip3 install --break-system-packages -r requirements.txt && \ pip3 install --break-system-packages --no-cache-dir -r requirements.txt && \
# #
# Setup configs # Setup configs
setcap cap_net_bind_service=+ep $(readlink -f $(type -P python3)) && \ setcap cap_net_bind_service=+ep $(readlink -f $(type -P python3)) && \