ngbs 5 months ago
parent
commit
9b70099993
2 changed files with 2 additions and 2 deletions
  1. 1 1
      sing-box/Dockerfile
  2. 1 1
      sing-box/Dockerfile.latest

+ 1 - 1
sing-box/Dockerfile

@@ -5,7 +5,7 @@ ARG GOPROXY=""
 ENV GOPROXY=${GOPROXY}
 ENV CGO_ENABLED=1
 RUN set -ex && \
-    apk add git build-base && \
+    apk add git build-base linux-headers libcap-dev libbpf-dev wireguard-tools cmake && \
     export COMMIT=$(git rev-parse --short HEAD) && \
     export VERSION=$(wget -qO- https://api.github.com/repos/sagernet/sing-box/tags | grep '"name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/') && \
     git clone --depth 1 --branch dev-next https://github.com/sagernet/sing-box.git . && \

+ 1 - 1
sing-box/Dockerfile.latest

@@ -5,7 +5,7 @@ ARG GOPROXY=""
 ENV GOPROXY=${GOPROXY}
 ENV CGO_ENABLED=1
 RUN set -ex && \
-    apk add git build-base && \
+    apk add git build-base linux-headers libcap-dev libbpf-dev wireguard-tools cmake && \
     export COMMIT=$(git rev-parse --short HEAD) && \
     export VERSION=$(wget -qO- https://api.github.com/repos/sagernet/sing-box/releases/latest | grep '"tag_name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/') && \
     git clone --depth 1 https://github.com/sagernet/sing-box.git . && \