-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (24 loc) · 987 Bytes
/
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
FROM ubuntu:20.04
RUN apt update
RUN apt install openssh-server sudo -y
RUN useradd -rm -d /home/jarbay51 -s /bin/bash -g root -G sudo -u 1000 test
RUN usermod -aG sudo test
RUN service ssh start
RUN echo 'test:test' | chpasswd
RUN apt update
RUN apt install build-essential -y
RUN apt install gdb -y
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y git jq bc make automake libnuma-dev \
&& apt-get install -y rsync htop curl build-essential \
&& apt-get install -y pkg-config libffi-dev libgmp-dev \
&& apt-get install -y libssl-dev libtinfo-dev libsystemd-dev \
&& apt-get install -y zlib1g-dev make g++ wget libncursesw5 libtool autoconf
WORKDIR "/root"
RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
RUN git clone https://github.com/Sekomer/Victim
WORKDIR "/root/Victim"
RUN /bin/bash -c "source /root/.ghcup/env && cabal install -O2 --overwrite-policy=always"
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]