fix: use musl build of sing-box for Alpine

This commit is contained in:
2026-07-28 18:42:03 +08:00
parent da609e8036
commit 5f0edae6fe
+1 -1
View File
@@ -18,7 +18,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /sub-store .
# ─── Stage 3: Runtime ───
FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata && \
wget -qO /tmp/sing-box.tar.gz "https://github.com/SagerNet/sing-box/releases/download/v1.13.14/sing-box-1.13.14-linux-amd64.tar.gz" && \
wget -qO /tmp/sing-box.tar.gz "https://github.com/SagerNet/sing-box/releases/download/v1.13.14/sing-box-1.13.14-linux-amd64-musl.tar.gz" && \
tar xzf /tmp/sing-box.tar.gz -C /tmp && \
mv /tmp/sing-box-*/sing-box /usr/local/bin/sing-box && \
chmod +x /usr/local/bin/sing-box && \