From d9abe6f314c3ca93ad8588622ceec5b28bbced1c Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sat, 13 Jun 2020 11:41:45 +0900 Subject: [PATCH] Update Dockerfile --- docker/trojan-go/Dockerfile | 5 ++--- docker/trojan-go/Dockerfile.architecture | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docker/trojan-go/Dockerfile b/docker/trojan-go/Dockerfile index 3c9270c..ee895b0 100644 --- a/docker/trojan-go/Dockerfile +++ b/docker/trojan-go/Dockerfile @@ -9,7 +9,6 @@ FROM alpine:latest LABEL maintainer="Teddysun " -WORKDIR /root COPY trojan-go.sh /root/trojan-go.sh COPY config.json /etc/trojan-go/config.json RUN set -ex \ @@ -17,8 +16,8 @@ RUN set -ex \ && chmod +x /root/trojan-go.sh \ && /root/trojan-go.sh \ && rm -fv /root/trojan-go.sh \ - && wget -O /root/geosite.dat https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat \ - && wget -O /root/geoip.dat https://github.com/v2ray/geoip/releases/latest/download/geoip.dat + && wget -O /usr/bin/geosite.dat https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat \ + && wget -O /usr/bin/geoip.dat https://github.com/v2ray/geoip/releases/latest/download/geoip.dat VOLUME /etc/trojan-go ENV TZ=Asia/Shanghai diff --git a/docker/trojan-go/Dockerfile.architecture b/docker/trojan-go/Dockerfile.architecture index a45a7e0..e8abbb3 100644 --- a/docker/trojan-go/Dockerfile.architecture +++ b/docker/trojan-go/Dockerfile.architecture @@ -10,7 +10,6 @@ FROM --platform=${TARGETPLATFORM} alpine:latest LABEL maintainer="Teddysun " ARG TARGETPLATFORM -WORKDIR /root COPY trojan-go.sh /root/trojan-go.sh COPY config.json /etc/trojan-go/config.json RUN set -ex \ @@ -18,8 +17,8 @@ RUN set -ex \ && chmod +x /root/trojan-go.sh \ && /root/trojan-go.sh "${TARGETPLATFORM}" \ && rm -fv /root/trojan-go.sh \ - && wget -O /root/geosite.dat https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat \ - && wget -O /root/geoip.dat https://github.com/v2ray/geoip/releases/latest/download/geoip.dat + && wget -O /usr/bin/geosite.dat https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat \ + && wget -O /usr/bin/geoip.dat https://github.com/v2ray/geoip/releases/latest/download/geoip.dat VOLUME /etc/trojan-go ENV TZ=Asia/Shanghai