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 \ automake \
build-base \ build-base \
c-ares-dev \ c-ares-dev \
libcap \
libev-dev \ libev-dev \
libtool \ libtool \
libsodium-dev \ libsodium-dev \
@ -32,6 +33,7 @@ RUN set -ex \
&& ./autogen.sh \ && ./autogen.sh \
&& ./configure --prefix=/usr --disable-documentation \ && ./configure --prefix=/usr --disable-documentation \
&& make install \ && make install \
&& ls /usr/bin/ss-* | xargs -n1 setcap cap_net_bind_service+ep \
&& apk del .build-deps \ && apk del .build-deps \
# Runtime dependencies setup # Runtime dependencies setup
&& apk add --no-cache \ && apk add --no-cache \

Loading…
Cancel
Save