Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

reverse

Immanuel George1bfbaa0af853
diff --git a/Dockerfile b/Dockerfile
index 51583af8..39455026 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,6 @@
# Updated by: Chandrapal <[email protected]>
# Updated by: Steve Micallef <[email protected]>
# -> Inspired by https://github.com/combro2k/dockerfiles/tree/master/alpine-spiderfoot
-# Updated by: Immanuel George <[email protected]>
#
# Usage:
#
@@ -16,9 +15,7 @@
# Pull the base image.
FROM alpine:latest
-WORKDIR /home/spiderfoot
-COPY . .
-ENV SPIDERFOOT_VERSION 3.0.0
+COPY requirements.txt .
# Run everything as one command so that only one layer is created
RUN apk --update add --no-cache --virtual build-dependencies gcc git curl py2-pip swig \
@@ -29,15 +26,21 @@ RUN apk --update add --no-cache --virtual build-dependencies gcc git curl py2-pi
&& addgroup spiderfoot \
&& adduser -G spiderfoot -h /home/spiderfoot -s /sbin/nologin \
-g "SpiderFoot User" -D spiderfoot \
+ && rmdir /home/spiderfoot \
&& cd /home \
+ && curl -sSL https://github.com/smicallef/spiderfoot/archive/master.tar.gz \
+ | tar -v -C /home -xz \
+ && mv /home/spiderfoot-master /home/spiderfoot \
&& chown -R spiderfoot:spiderfoot /home/spiderfoot \
&& apk del --purge build-dependencies \
&& rm -rf /var/cache/apk/* \
&& rm -rf /root/.cache
USER spiderfoot
+WORKDIR /home/spiderfoot
EXPOSE 5001
# Run the application.
-CMD ["/usr/bin/python", "./sf.py", "0.0.0.0:5001"]
+ENTRYPOINT ["/usr/bin/python"]
+CMD ["./sf.py", "0.0.0.0:5001"]
diff --git a/requirements.txt b/requirements.txt
index 301003b8..4ea0d8fd 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -7,4 +7,3 @@ netaddr>=0.7.18
requests>=2.20.0
ipwhois==1.0.0
ipaddr>=2.2.0
-future