/
Dockerfile
23 lines (17 loc) · 717 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
# docker build -t dnstwist .
# docker build -t dnstwist:phash --build-arg phash=1 .
FROM debian:stable-slim
MAINTAINER [email protected]
WORKDIR /opt/dnstwist
ARG phash
RUN apt-get update && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y --no-install-recommends python3-dnspython python3-tld python3-geoip python3-idna ca-certificates && \
apt-get install -y python3-ssdeep python3-tlsh && \
if [ -n "$phash" ]; then apt-get install -y --no-install-recommends python3-pil python3-selenium chromium-driver; fi && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY dnstwist.py /opt/dnstwist/
COPY dictionaries /opt/dnstwist/dictionaries/
ENTRYPOINT ["./dnstwist.py"]