From 4c660f604f2ce92149189d26530dd857e9ca48c6 Mon Sep 17 00:00:00 2001 From: David Osztertag Date: Fri, 20 Dec 2019 13:55:56 +0100 Subject: [PATCH] Set cap_net_bind_service for docker --- docker/alpine/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index 0a1fd9d9..9f84df13 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -21,6 +21,7 @@ RUN set -ex \ automake \ build-base \ c-ares-dev \ + libcap \ libev-dev \ libtool \ libsodium-dev \ @@ -32,6 +33,7 @@ RUN set -ex \ && ./autogen.sh \ && ./configure --prefix=/usr --disable-documentation \ && make install \ + && ls /usr/bin/ss-* | xargs -n1 setcap cap_net_bind_service+ep \ && apk del .build-deps \ # Runtime dependencies setup && apk add --no-cache \