ctf-resources/htb/hacktheboo2024/pwn/[Very Easy] Que onda/Dockerfile

9 lines
258 B
Docker
Raw Normal View History

2024-10-23 11:10:43 +02:00
FROM alpine:latest
RUN apk add --no-cache socat dash && ln -sf /usr/bin/dash /bin/sh
EXPOSE 1337
RUN addgroup -S ctf && adduser -S ctf -G ctf
COPY challenge/ /home/ctf/
WORKDIR /home/ctf
USER ctf
CMD ["socat", "tcp-l:1337,reuseaddr,fork", "EXEC:./que_onda"]