From d9da576f68d9f1be28f7b78c7fc5fa75044be234 Mon Sep 17 00:00:00 2001 From: Meo597 <197331664+Meo597@users.noreply.github.com> Date: Thu, 5 Nov 2026 06:07:09 +0800 Subject: [PATCH] Docker: Download geodata from GitHub Releases --- .github/docker/Dockerfile | 4 ++-- .github/docker/Dockerfile.usa | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/docker/Dockerfile b/.github/docker/Dockerfile index efeaca27e..d5b0192aa 100644 --- a/.github/docker/Dockerfile +++ b/.github/docker/Dockerfile @@ -9,8 +9,8 @@ ARG TARGETARCH RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags="all=-l=4" -ldflags "-s -w -buildid=" ./main # Download geodat into a staging directory -ADD https://raw.githubusercontent.com/XTLS/Xray-rules-dat/release/geoip/geoip-full.dat /tmp/geodat/geoip.dat -ADD https://raw.githubusercontent.com/XTLS/Xray-rules-dat/release/geosite/geosite-expand.dat /tmp/geodat/geosite.dat +ADD https://github.com/XTLS/Xray-rules-dat/releases/latest/download/geoip-full.dat /tmp/geodat/geoip.dat +ADD https://github.com/XTLS/Xray-rules-dat/releases/latest/download/geosite-expand.dat /tmp/geodat/geosite.dat RUN mkdir -p /tmp/empty diff --git a/.github/docker/Dockerfile.usa b/.github/docker/Dockerfile.usa index 57786876c..680dde0ac 100644 --- a/.github/docker/Dockerfile.usa +++ b/.github/docker/Dockerfile.usa @@ -9,8 +9,8 @@ ARG TARGETARCH RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags="all=-l=4" -ldflags "-s -w -buildid=" ./main # Download geodat into a staging directory -ADD https://raw.githubusercontent.com/XTLS/Xray-rules-dat/release/geoip/geoip-full.dat /tmp/geodat/geoip.dat -ADD https://raw.githubusercontent.com/XTLS/Xray-rules-dat/release/geosite/geosite-expand.dat /tmp/geodat/geosite.dat +ADD https://github.com/XTLS/Xray-rules-dat/releases/latest/download/geoip-full.dat /tmp/geodat/geoip.dat +ADD https://github.com/XTLS/Xray-rules-dat/releases/latest/download/geosite-expand.dat /tmp/geodat/geosite.dat RUN mkdir -p /tmp/empty