-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathDockerfile
40 lines (40 loc) · 1.19 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
FROM kalilinux/kali-rolling:latest
LABEL maintainer="[email protected]"
RUN sed -i "s/http.kali.org/mirrors.ocf.berkeley.edu/g" /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install \
sudo \
openssh-server \
python2 \
dialog \
firefox-esr \
inetutils-ping \
htop \
nano \
net-tools \
tigervnc-standalone-server \
tigervnc-xorg-extension \
tigervnc-viewer \
novnc \
dbus-x11
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install \
xfce4-goodies \
kali-linux-large \
kali-desktop-xfce && \
apt-get -y full-upgrade
RUN apt-get -y autoremove && \
apt-get clean all && \
rm -rf /var/lib/apt/lists/* && \
useradd -m -c "Kali Linux" -s /bin/bash -d /home/kali kali && \
sed -i "s/#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/g" /etc/ssh/sshd_config && \
sed -i "s/off/remote/g" /usr/share/novnc/app/ui.js && \
echo "kali ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
touch /usr/share/novnc/index.htm
COPY startup.sh /startup.sh
USER kali
WORKDIR /home/kali
ENV PASSWORD=kalilinux
ENV SHELL=/bin/bash
EXPOSE 8080
ENTRYPOINT ["/bin/bash", "/startup.sh"]