From 824e1e951a666973095a07d43a9b570cac308b88 Mon Sep 17 00:00:00 2001 From: Alexander Schlarb Date: Thu, 27 Sep 2018 14:30:06 +0200 Subject: [PATCH] Mark `socat` with CAP_NET_BIND_SERVICE capability --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 514e698..25b80d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]