-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (26 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM kalilinux/kali-rolling AS build-deps
RUN set -eux; \
apt-get update -y; \
apt-get install unzip -y --no-install-recommends; \
rm -rf /var/lib/apt/lists/*
FROM build-deps AS build
WORKDIR /build
ADD https://github.com/owasp-amass/amass/releases/download/v3.23.2/amass_Linux_amd64.zip .
RUN set -eux; \
unzip amass_Linux_amd64.zip; \
./amass_Linux_amd64/amass --version
FROM kalilinux/kali-rolling AS runtime
RUN set -eux; \
apt-get update -y; \
apt-get install emailharvester theharvester python3-venv -y --no-install-recommends; \
rm -rf /var/lib/apt/lists/*
COPY --from=build /build/amass_Linux_amd64/amass /usr/local/bin/amass
# InfoCrawler installation
WORKDIR /app
COPY . .
RUN set -eux; \
python3 -m venv venv; \
/app/venv/bin/pip install -r requirements.txt
ENV PATH="/app/venv/bin:${PATH}"
ENTRYPOINT [ "/app/info-crawler.py" ]
CMD ["--help"]