rebuild, tweak spiderfoot

This commit is contained in:
t3chn0m4g3 2020-01-03 17:04:18 +00:00
parent af3ef271d4
commit 2ed0f939d1

View file

@ -1,11 +1,12 @@
FROM alpine FROM alpine:3.10
# #
# Get and install dependencies & packages # Get and install dependencies & packages
RUN sed -i 's/dl-cdn/dl-4/g' /etc/apk/repositories && \ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \ apk -U --no-cache add \
build-base \ build-base \
curl \ curl \
git \ git \
libffi-dev \
libxml2 \ libxml2 \
libxml2-dev \ libxml2-dev \
libxslt \ libxslt \
@ -14,6 +15,8 @@ RUN sed -i 's/dl-cdn/dl-4/g' /etc/apk/repositories && \
openssl-dev \ openssl-dev \
python \ python \
python-dev \ python-dev \
py-cffi \
py-pillow \
py-future \ py-future \
py-pip \ py-pip \
swig && \ swig && \
@ -26,8 +29,7 @@ RUN sed -i 's/dl-cdn/dl-4/g' /etc/apk/repositories && \
# git clone --depth=1 https://github.com/smicallef/spiderfoot -b v2.12.0-final /home/spiderfoot && \ # git clone --depth=1 https://github.com/smicallef/spiderfoot -b v2.12.0-final /home/spiderfoot && \
git clone --depth=1 https://github.com/smicallef/spiderfoot /home/spiderfoot && \ git clone --depth=1 https://github.com/smicallef/spiderfoot /home/spiderfoot && \
cd /home/spiderfoot && \ cd /home/spiderfoot && \
pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir openxmllib wheel && \
pip install --no-cache-dir wheel && \
pip install --no-cache-dir -r requirements.txt && \ pip install --no-cache-dir -r requirements.txt && \
chown -R spiderfoot:spiderfoot /home/spiderfoot && \ chown -R spiderfoot:spiderfoot /home/spiderfoot && \
sed -i "s#'__docroot': ''#'__docroot': '\/spiderfoot'#" /home/spiderfoot/sf.py && \ sed -i "s#'__docroot': ''#'__docroot': '\/spiderfoot'#" /home/spiderfoot/sf.py && \
@ -36,6 +38,7 @@ RUN sed -i 's/dl-cdn/dl-4/g' /etc/apk/repositories && \
# Clean up # Clean up
apk del --purge build-base \ apk del --purge build-base \
git \ git \
libffi-dev \
libxml2-dev \ libxml2-dev \
libxslt-dev \ libxslt-dev \
openssl-dev \ openssl-dev \