Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Mark socat with CAP_NET_BIND_SERVICE capability #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM alpine

RUN apk --no-cache add socat
RUN apk --no-cache add socat libcap \
&& setcap 'cap_net_bind_service=+ep' /usr/bin/socat \
&& apk del libcap

ENTRYPOINT ["socat"]