Browse Source

Set cap_net_bind_service for docker

pull/2563/head
David Osztertag 5 years ago
parent
commit
4c660f604f
1 changed files with 2 additions and 0 deletions
  1. 2
      docker/alpine/Dockerfile

2
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 \

Loading…
Cancel
Save