22 lines
694 B
Docker
22 lines
694 B
Docker
FROM debian:bookworm-slim
|
|
|
|
# prepare container
|
|
RUN apt update && apt install -y bash vim less nasm nano gdb make gcc clang python3 python3-ropgadget python3-pwntools git ca-certificates curl python3-pip file inetutils-ping procps
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* # minimize
|
|
|
|
RUN useradd -m -s /bin/bash student
|
|
COPY ./welcome_screen /etc/motd
|
|
|
|
# prepare student account
|
|
USER student
|
|
COPY --chown=student:student ./data/ /home/student
|
|
|
|
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd; export LANG=C.UTF-8' \
|
|
>> /home/student/.bashrc
|
|
|
|
RUN echo 'source /home/student/.gef-2025.01.py' \
|
|
>> /home/student/.gdbinit
|
|
|
|
WORKDIR /home/student
|
|
ENTRYPOINT ["/bin/bash"]
|