This repository was archived by the owner on Feb 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (44 loc) · 1.44 KB
/
Dockerfile
File metadata and controls
61 lines (44 loc) · 1.44 KB
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
51
52
53
54
55
56
57
58
59
60
61
FROM kalilinux/kali-rolling
MAINTAINER @viyatb viyat.bhalodia@owasp.org, @alexandrasandulescu alecsandra.sandulescu@gmail.com
# Kali signatures preventive update
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y --no-install-recommends ca-certificates gnupg wget kali-archive-keyring
# install required packages from Kali repos
COPY packages.sh /
RUN ["sh", "packages.sh"]
# Cleanup
RUN apt-get clean
RUN apt-get -y autoremove
# dowload optional packages archives
COPY optional_tools.sh /usr/bin/
RUN chmod +x /usr/bin/optional_tools.sh
RUN /bin/bash /usr/bin/optional_tools.sh
#Kali SSL lib-fix
ENV PYCURL_SSL_LIBRARY openssl
#download latest OWTF
ARG OWTF_VERSION=develop
RUN git clone https://github.com/owtf/owtf.git \
&& cd owtf \
&& git checkout ${OWTF_VERSION}
RUN mkdir -p /owtf/data/tools/restricted
ENV TERM xterm
ENV SHELL /bin/bash
WORKDIR /owtf
# core installation
RUN python3 -m pip install --no-cache-dir --break-system-packages --upgrade pip setuptools wheel \
&& python3 -m pip install --no-cache-dir --break-system-packages -e .
# expose ports
EXPOSE 8010 8009 8008
#setup postgres
USER postgres
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
# setting user to root
ENV USER root
USER root
# Copy postgres_entry to scripts
COPY postgres_entry.sh /owtf/
#set entrypoint
COPY owtf_entry.sh /usr/bin/
RUN chmod +x /usr/bin/owtf_entry.sh
ENTRYPOINT ["/usr/bin/owtf_entry.sh"]