forked from tracelabs/tlosint-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (56 loc) · 1.45 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM kalilinux/kali-rolling
# Base packages
RUN export DISPLAY=:0.0 &&\
export TERM=xterm &&\
DEBIAN_FRONTEND=noninteractive &&\
apt-get update -qq &&\
apt-get install --no-install-recommends -y -qq\
apt-utils \
wget \
git \
sed \
unzip \
curl \
gnupg \
net-tools \
python3-setuptools \
python3 \
python3-pip \
software-properties-common \
sudo \
schroot \
debootstrap \
cdebootstrap \
dnsutils \
iproute2 \
iputils-ping \
libunwind8 \
locales \
pkg-config \
fakeroot \
dpkg \
zip \
fdisk \
mount \
build-essential \
cmake \
bash-completion \
live-build \
cpio
# Start
RUN echo '#!/usr/bin/env bash \n\
sudo sed -i '1161s%umount%#umount%' /usr/share/debootstrap/functions \n\
sudo sed -i '1191s%umount%#umount%' /usr/share/debootstrap/functions \n\
sudo sed -i '1179s%umount%#umount%' /usr/share/debootstrap/functions \n\
sudo wget -O - https://raw.githubusercontent.com/tracelabs/tlosint-live/master/build_tracelabsiso_recipe.sh | sudo bash \n\
cp /opt/live-build-config/images/kali-linux-rolling-live-tracelabs-amd64.iso /data/kali-linux-rolling-live-tracelabs-amd64.iso' > /opt/run.sh &&\
chmod +x /opt/run.sh
# Clean up
RUN apt-get clean &&\
apt-get clean autoclean &&\
apt-get autoremove -y &&\
rm -rf /tmp/* &&\
rm -rf /var/lib/{apt,dpkg,cache,log}/
VOLUME [ "/data" ]
ENTRYPOINT ["/bin/bash"]
CMD ["-c","/opt/run.sh"]