| 1 |
# docker build -t dnstwist . |
| 2 |
# docker build -t dnstwist:phash --build-arg phash=1 . |
| 3 |
|
| 4 |
FROM debian:stable-slim |
| 5 |
MAINTAINER [email protected] |
| 6 |
|
| 7 |
WORKDIR /opt/dnstwist |
| 8 |
|
| 9 |
ARG phash |
| 10 |
|
| 11 |
RUN apt-get update && \ |
| 12 |
export DEBIAN_FRONTEND=noninteractive && \ |
| 13 |
apt-get install -y --no-install-recommends python3-dnspython python3-tld python3-geoip python3-idna ca-certificates && \ |
| 14 |
apt-get install -y python3-ssdeep python3-tlsh && \ |
| 15 |
if [ -n "$phash" ]; then apt-get install -y --no-install-recommends python3-pil python3-selenium chromium-driver; fi && \ |
| 16 |
apt-get autoremove -y && \ |
| 17 |
apt-get clean && \ |
| 18 |
rm -rf /var/lib/apt/lists/* |
| 19 |
|
| 20 |
COPY dnstwist.py /opt/dnstwist/ |
| 21 |
COPY dictionaries /opt/dnstwist/dictionaries/ |
| 22 |
|
| 23 |
ENTRYPOINT ["./dnstwist.py"] |