add carbeat

This commit is contained in:
adzkyyy committed 2025-10-25 09:53:39 +07:00
1 parent 604bd24b04
commit 404e2a82cb
12 files changed
+657

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
# Dockerfile
FROM ubuntu:24.04
# Build-time args
ARG PASSWORD=root
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /home/ctf/chall
RUN apt-get update && \
apt-get install -y --no-install-recommends \
make \
g++ \
socat \
build-essential \
openssh-server \
bash \
nano \
vim \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -d /home/ctf -s /bin/bash ctf && echo "ctf:${PASSWORD}" | chpasswd
RUN mkdir -p /var/run/sshd
COPY chall/ /home/ctf/chall
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh /home/ctf/chall/run.sh && \
chown -R root:root /home/ctf/chall && chmod -R 555 /home/ctf/chall
EXPOSE 9000 22
CMD ["/entrypoint.sh"]