mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
Update Dockerfile
This commit is contained in:
parent
e05795f925
commit
d9abe6f314
@ -9,7 +9,6 @@
|
||||
FROM alpine:latest
|
||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||
|
||||
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
|
||||
|
@ -10,7 +10,6 @@ FROM --platform=${TARGETPLATFORM} alpine:latest
|
||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user