reduce build times, tweaking

This commit is contained in:
t3chn0m4g3
2022-03-14 21:50:19 +00:00
parent 9a0e6bf1d8
commit dd5f2c2a8d
8 changed files with 48 additions and 11 deletions

View File

@ -1,13 +1,20 @@
FROM alpine:3.15
#
# Include dist
#COPY dist/ /root/dist/
COPY dist/ /root/dist/
#
# Install packages
RUN apk -U --no-cache add \
build-base \
git \
libcap \
py3-click \
py3-flask \
py3-itsdangerous \
py3-jinja2 \
py3-markupsafe \
py3-pip \
py3-werkzeug \
python3 \
python3-dev && \
#
@ -17,8 +24,8 @@ RUN apk -U --no-cache add \
git clone https://github.com/Will-777/wordpot2 && \
cd wordpot2 && \
git checkout e93a2e00d84d280b0acd58ba6889b4bee8a6e4d2 && \
sed "s/MarkupSafe==1.0/MarkupSafe==1.1.1/g" -i requirements.txt && \
# cp /root/dist/views.py /opt/wordpot2/wordpot/views.py && \
cp /root/dist/requirements.txt . && \
pip3 install -r requirements.txt && \
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
#

1
docker/wordpot/dist/requirements.txt vendored Normal file
View File

@ -0,0 +1 @@
hpfeeds-threatstream==1.1

View File

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