mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-03-26 06:46:24 +03:00
Ref: deduplicate convert funcs, generate DAT with pyhton protobuf
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,22 +1,16 @@
|
||||
FROM ghcr.io/sagernet/sing-box:v1.11.15 AS sing-box
|
||||
|
||||
FROM golang:1.25.5-alpine3.23 AS go-builder
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go install -ldflags="-s -w" \
|
||||
github.com/v2fly/domain-list-community@20251222003838
|
||||
FROM ghcr.io/sagernet/sing-box:v1.12.25 AS sing-box
|
||||
|
||||
FROM python:3.12.12-alpine3.23
|
||||
|
||||
COPY --from=sing-box /usr/local/bin/sing-box /bin/sing-box
|
||||
|
||||
COPY --from=go-builder /go/bin/domain-list-community /bin/domain-list-community
|
||||
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY proto/ /app/proto/
|
||||
COPY convert.py /app/convert.py
|
||||
|
||||
CMD ["python3", "convert.py"]
|
||||
CMD ["python3", "convert.py"]
|
||||
|
||||
Reference in New Issue
Block a user