mirror of
https://github.com/teddysun/across.git
synced 2025-11-26 21:35:33 +08:00
26
docker/trojan-go/Dockerfile.architecture
Normal file
26
docker/trojan-go/Dockerfile.architecture
Normal file
@@ -0,0 +1,26 @@
|
||||
# Dockerfile for trojan-go based alpine
|
||||
# Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
|
||||
# Reference URL:
|
||||
# https://github.com/p4gefau1t/trojan-go
|
||||
# https://github.com/v2ray/v2ray-core
|
||||
# https://github.com/v2ray/geoip
|
||||
# https://github.com/v2ray/domain-list-community
|
||||
|
||||
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 \
|
||||
&& apk add --no-cache tzdata ca-certificates \
|
||||
&& chmod +x /root/trojan-go.sh \
|
||||
&& /root/trojan-go.sh "${TARGETPLATFORM}" \
|
||||
&& rm -fv /root/trojan-go.sh \
|
||||
&& 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
|
||||
CMD [ "trojan-go", "-config", "/etc/trojan-go/config.json" ]
|
||||
Reference in New Issue
Block a user