-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
42 lines (35 loc) · 1.49 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
FROM kalilinux/kali-rolling
RUN echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" > /etc/apt/sources.list && \
echo "deb-src http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list
RUN sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && apt-get -y dist-upgrade && apt-get clean \
&& apt-get install -y --no-install-recommends software-properties-common curl
RUN apt-get install -y --no-install-recommends --allow-unauthenticated \
openssh-server pwgen sudo vim-tiny \
supervisor \
net-tools \
lxde x11vnc xvfb autocutsel \
xfonts-base lwm xterm \
nginx \
python3-pip python3-dev build-essential \
mesa-utils libgl1-mesa-dri \
dbus-x11 x11-utils \
&& apt-get -y autoclean \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install -U pip
# For installing other Kali metapackages check https://tools.kali.org/kali-metapackages
# RUN apt-get update && apt-cache search kali-linux && apt-get install -y \
# kali-tools-top10
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
RUN chmod +x /bin/tini
ADD image /
RUN pip3 install setuptools wheel && pip install -r /usr/lib/web/requirements.txt
EXPOSE 80
WORKDIR /root
ENV HOME=/root \
SHELL=/bin/bash
ENTRYPOINT ["/startup.sh"]
CMD ["/bin/bash"]