tweaking, reduce build times

This commit is contained in:
t3chn0m4g3
2022-03-13 10:19:08 +00:00
parent e87a6fa53f
commit 3bcf85a92f
18 changed files with 89 additions and 33 deletions

View File

@ -14,9 +14,20 @@ RUN apk -U --no-cache add \
openssl-dev \
postgresql-dev \
py3-cryptography \
py3-elasticsearch \
py3-geoip2 \
py3-maxminddb \
py3-mysqlclient \
py3-requests \
py3-packaging \
py3-pip \
py3-psycopg2 \
py3-redis \
py3-requests \
py3-service_identity \
py3-setuptools \
py3-twisted \
py3-wheel \
python3 \
python3-dev && \
mkdir -p /opt && \
@ -24,7 +35,7 @@ RUN apk -U --no-cache add \
git clone https://gitlab.com/bontchev/ipphoney.git/ && \
cd ipphoney && \
git checkout 7ab1cac437baba17cb2cd25d5bb1400327e1bb79 && \
pip3 install --ignore-installed packaging && \
cp /root/dist/requirements.txt . && \
pip3 install -r requirements.txt && \
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
#

4
docker/ipphoney/dist/requirements.txt vendored Normal file
View File

@ -0,0 +1,4 @@
configparser>=3.5.0
couchdb
hpfeeds>=3.0.0
pymongo

View File

@ -10,8 +10,8 @@ services:
build: .
container_name: ipphoney
restart: always
cpu_count: 1
cpus: 0.25
# cpu_count: 1
# cpus: 0.25
networks:
- ipphoney_local
ports: