Browse Source

Merge pull request #2563 from oszi/master

Set cap_net_bind_service for docker
pull/2577/head
Max Lv 5 years ago
committed by GitHub
parent
commit
ffc2ea42fc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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