Skip to content

Commit f9fe7ad

Browse files
committed
Add Dockerfile for r0pbaby
1 parent 356708e commit f9fe7ad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

binary/r0pbaby/server/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM alpine
2+
RUN apk add --no-cache gcc
3+
RUN apk add --no-cache socat
4+
RUN apk add --no-cache libc-dev
5+
RUN apk add --no-cache util-linux
6+
7+
WORKDIR /app
8+
COPY . .
9+
10+
RUN gcc -no-pie -m32 -fno-stack-protector -z execstack -o r0pbaby r0pbaby.c
11+
12+
EXPOSE 8080
13+
14+
CMD ["socat", "TCP4-LISTEN:8080,fork", "EXEC:/app/exec.sh"]

0 commit comments

Comments
 (0)