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 \
mariadb-dev \
pkgconfig \
py3-pip \
python3-dev \
wget && \
rm -rf /root/* \

View file

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