From 557ffa2c08c74e3eab5cbafff1cf708883ed69c5 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sat, 28 Aug 2021 15:23:22 +0900 Subject: [PATCH] Update Dockerfile --- docker/trojan-go/Dockerfile | 6 +++++- docker/trojan-go/Dockerfile.architecture | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docker/trojan-go/Dockerfile b/docker/trojan-go/Dockerfile index ef07239..282f623 100644 --- a/docker/trojan-go/Dockerfile +++ b/docker/trojan-go/Dockerfile @@ -18,7 +18,11 @@ RUN set -ex \ && rm -fv /root/trojan-go.sh \ && mkdir -p /usr/share/trojan-go \ && wget -O /usr/share/trojan-go/geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat \ - && wget -O /usr/share/trojan-go/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat + && wget -O /usr/share/trojan-go/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat \ + && wget -O /usr/share/trojan-go/geoip-only-cn-private.dat https://github.com/v2fly/geoip/releases/latest/download/geoip-only-cn-private.dat \ + && ln -fs /usr/share/trojan-go/geoip.dat /usr/bin/ \ + && ln -fs /usr/share/trojan-go/geoip-only-cn-private.dat /usr/bin/ \ + && ln -fs /usr/share/trojan-go/geosite.dat /usr/bin/ VOLUME /etc/trojan-go ENV TZ=Asia/Shanghai diff --git a/docker/trojan-go/Dockerfile.architecture b/docker/trojan-go/Dockerfile.architecture index 389fbf5..e66a4b1 100644 --- a/docker/trojan-go/Dockerfile.architecture +++ b/docker/trojan-go/Dockerfile.architecture @@ -19,7 +19,11 @@ RUN set -ex \ && rm -fv /root/trojan-go.sh \ && mkdir -p /usr/share/trojan-go \ && wget -O /usr/share/trojan-go/geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat \ - && wget -O /usr/share/trojan-go/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat + && wget -O /usr/share/trojan-go/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat \ + && wget -O /usr/share/trojan-go/geoip-only-cn-private.dat https://github.com/v2fly/geoip/releases/latest/download/geoip-only-cn-private.dat \ + && ln -fs /usr/share/trojan-go/geoip.dat /usr/bin/ \ + && ln -fs /usr/share/trojan-go/geoip-only-cn-private.dat /usr/bin/ \ + && ln -fs /usr/share/trojan-go/geosite.dat /usr/bin/ VOLUME /etc/trojan-go ENV TZ=Asia/Shanghai