mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
optimize build
This commit is contained in:
parent
646b0fddd3
commit
a0687e7c92
2 changed files with 3 additions and 2 deletions
|
@ -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/* \
|
||||||
|
|
|
@ -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)) && \
|
||||||
|
|
Loading…
Reference in a new issue