-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
51 lines (39 loc) · 1.84 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM kalilinux/kali-rolling
ENV DEBIAN_FRONTEND=noninteractive
# install dependencies
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y curl dnsutils wget
RUN apt-get install -y nmap sqlmap autopsy john
RUN apt-get install -y vim python3-pip git python-is-python3
# install zaproxy stuff
RUN apt-get install -y zaproxy docker.io
RUN pip install zaproxy
# install Google Chrome
WORKDIR /home/
RUN apt-get update && apt-get install -y wget gnupg2 software-properties-common
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
RUN apt-get update && apt-get install -y google-chrome-stable
WORKDIR /root/
# install RustScan
RUN wget https://github.com/RustScan/RustScan/releases/download/2.2.2/rustscan_2.2.2_amd64.deb
RUN dpkg -i rustscan_2.2.2_amd64.deb
RUN rm rustscan_2.2.2_amd64.deb
RUN apt-get install -y iputils-ping
# segmented run layers so the compiler does not struggle
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# install, manually, nettacker
RUN mkdir /opt/nettacker
RUN git clone https://github.com/OWASP/Nettacker.git /opt/nettacker
RUN apt-get remove -y python3-cryptography
RUN pip3 install -r /opt/nettacker/requirements.txt
RUN chmod +x /opt/nettacker/nettacker.py
RUN ln -s /opt/nettacker/nettacker.py /usr/local/bin/nettacker
# install project's depends
COPY . /root/
RUN pip3 install --default-timeout=1000 --no-cache-dir --use-deprecated=legacy-resolver -r /root/requirements.txt
WORKDIR /root/tars/
# NOTE: For testing, comment out ENTRYPOINT, uncomment CMD, then rebuild and run the image
EXPOSE 8501
# CMD ["bash"]
ENTRYPOINT ["/bin/bash", "-c", "source /root/.env && exec streamlit run /root/frontend/main.py --server.port=8501 --server.address=0.0.0.0"]