| 1 |
# Execute the following command to build the image: tar -czh . | docker build -t dnstwist_webapp - |
| 2 |
|
| 3 |
FROM debian:stable-slim |
| 4 |
MAINTAINER [email protected] |
| 5 |
|
| 6 |
WORKDIR /opt/dnstwist |
| 7 |
|
| 8 |
RUN apt-get update && \ |
| 9 |
apt-get install -y --no-install-recommends python3-idna python3-tld python3-dnspython python3-geoip gunicorn3 python3-flask |
| 10 |
|
| 11 |
COPY ./webapp.py /opt/dnstwist/ |
| 12 |
COPY ./webapp.html /opt/dnstwist/ |
| 13 |
COPY ./dnstwist.py /opt/dnstwist/ |
| 14 |
|
| 15 |
EXPOSE 8000 |
| 16 |
|
| 17 |
CMD ["gunicorn3", "webapp:app", "--bind", "0.0.0.0:8000", "--workers", "1", "--threads", "3", "--log-level", "debug"] |