Browse Source

Update

- Fix path error
pull/2917/head
vndroid 2 years ago
committed by Max Lv
parent
commit
5fdb6624e3
1 changed files with 4 additions and 3 deletions
  1. 7
      docker/alpine/Dockerfile

7
docker/alpine/Dockerfile

@ -28,10 +28,11 @@ RUN set -x \
# Build & install # Build & install
&& cd /tmp/repo \ && cd /tmp/repo \
&& ./autogen.sh \ && ./autogen.sh \
&& ./configure --prefix=/usr --disable-documentation \
&& ./configure --prefix=/usr/local --disable-documentation \
&& make -j$(getconf _NPROCESSORS_ONLN) \ && make -j$(getconf _NPROCESSORS_ONLN) \
&& make install \ && make install \
&& ls /usr/bin/ss-* | xargs -n1 setcap cap_net_bind_service+ep \
&& cd /usr/local/bin \
&& ls /usr/local/bin/ss-* | xargs -n1 setcap cap_net_bind_service+ep \
&& strip $(ls /usr/local/bin | grep -Ev 'ss-nat') \ && strip $(ls /usr/local/bin | grep -Ev 'ss-nat') \
&& apk del .build-deps \ && apk del .build-deps \
# Runtime dependencies setup # Runtime dependencies setup
@ -39,7 +40,7 @@ RUN set -x \
ca-certificates \ ca-certificates \
rng-tools \ rng-tools \
tzdata \ tzdata \
$(scanelf --needed --nobanner /usr/bin/ss-* \
$(scanelf --needed --nobanner /usr/local/bin/ss-* \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| sort -u) \ | sort -u) \
&& rm -rf /tmp/repo && rm -rf /tmp/repo

Loading…
Cancel
Save