Get rid of dependencies

This commit is contained in:
unidcml
2025-02-08 18:31:44 +03:00
parent 456540e9fa
commit 38cb76b827
5 changed files with 7 additions and 435 deletions

View File

@@ -1,18 +1,17 @@
FROM ghcr.io/sagernet/sing-box:v1.10.7 AS sing-box
FROM golang:1.23.5-alpine3.21 AS go-builder
FROM golang:1.22.12-alpine3.21 AS go-builder
WORKDIR /app
COPY xray-geosite/. /app
RUN go build -o geosite-compiler
RUN CGO_ENABLED=0 GOOS=linux go install -ldflags="-s -w" \
github.com/v2fly/domain-list-community@20250207120917
FROM python:3.10.16-alpine3.21
COPY --from=sing-box /usr/local/bin/sing-box /bin/sing-box
COPY --from=go-builder /app/geosite-compiler /bin/geosite-compiler
COPY --from=go-builder /go/bin/domain-list-community /bin/domain-list-community
RUN pip install --no-cache-dir tldextract