mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2025-04-18 12:19:09 +00:00
23 lines
No EOL
450 B
Docker
23 lines
No EOL
450 B
Docker
FROM ghcr.io/sagernet/sing-box:v1.10.7 AS sing-box
|
|
|
|
FROM golang:1.23.5-alpine3.21 AS go-builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY xray-geosite/. /app
|
|
|
|
RUN go build -o geosite-compiler
|
|
|
|
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
|
|
|
|
RUN pip install --no-cache-dir tldextract
|
|
|
|
WORKDIR /app
|
|
|
|
COPY convert.py /app/convert.py
|
|
|
|
CMD ["python3", "convert.py"] |