Skip to content

Commit 356708e

Browse files
committed
Update Dockerfile for FSA
1 parent efbca7b commit 356708e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

binary/FSA/server/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM alpine
22
RUN apk add --no-cache gcc
33
RUN apk add --no-cache socat
4-
RUN apk add libc-dev
4+
RUN apk add --no-cache libc-dev
5+
RUN apk add --no-cache util-linux
56

67
WORKDIR /app
78
COPY . .
@@ -10,4 +11,4 @@ RUN gcc -o echo echo.c
1011

1112
EXPOSE 8080
1213

13-
CMD ["socat", "TCP4-LISTEN:8080,fork", "EXEC:/app/echo"]
14+
CMD ["socat", "TCP4-LISTEN:8080,fork", "EXEC:/app/exec.sh"]

binary/FSA/server/exec.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
setarch $(uname -m) -R /app/echo

0 commit comments

Comments
 (0)