Update Dockerfile

This commit is contained in:
Teddysun 2021-08-28 15:23:22 +09:00
parent c112c2990b
commit 557ffa2c08
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
2 changed files with 10 additions and 2 deletions

View File

@ -18,7 +18,11 @@ RUN set -ex \
&& rm -fv /root/trojan-go.sh \ && rm -fv /root/trojan-go.sh \
&& mkdir -p /usr/share/trojan-go \ && 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/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 VOLUME /etc/trojan-go
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai

View File

@ -19,7 +19,11 @@ RUN set -ex \
&& rm -fv /root/trojan-go.sh \ && rm -fv /root/trojan-go.sh \
&& mkdir -p /usr/share/trojan-go \ && 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/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 VOLUME /etc/trojan-go
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai