mirror of
				https://github.com/teddysun/across.git
				synced 2025-10-31 08:45:36 +08:00 
			
		
		
		
	Update Dockerfile
This commit is contained in:
		| @@ -1,9 +1,9 @@ | ||||
| # Dockerfile for v2ray based alpine | ||||
| # Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com> | ||||
| # Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com> | ||||
| # Reference URL: | ||||
| # https://github.com/v2ray/v2ray-core | ||||
| # https://github.com/v2ray/geoip | ||||
| # https://github.com/v2ray/domain-list-community | ||||
| # https://github.com/v2fly/v2ray-core | ||||
| # https://github.com/v2fly/geoip | ||||
| # https://github.com/v2fly/domain-list-community | ||||
|  | ||||
| FROM alpine:latest | ||||
| LABEL maintainer="Teddysun <i@teddysun.com>" | ||||
| @@ -13,12 +13,12 @@ COPY v2ray.sh /root/v2ray.sh | ||||
| COPY config.json /etc/v2ray/config.json | ||||
| RUN set -ex \ | ||||
| 	&& apk add --no-cache tzdata ca-certificates \ | ||||
| 	&& mkdir -p /var/log/v2ray \ | ||||
| 	&& mkdir -p /var/log/v2ray /usr/share/v2ray \ | ||||
| 	&& chmod +x /root/v2ray.sh \ | ||||
| 	&& /root/v2ray.sh \ | ||||
| 	&& rm -fv /root/v2ray.sh \ | ||||
| 	&& wget -O /usr/bin/geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat \ | ||||
| 	&& wget -O /usr/bin/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat | ||||
| 	&& wget -O /usr/share/v2ray/geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat \ | ||||
| 	&& wget -O /usr/share/v2ray/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat | ||||
|  | ||||
| VOLUME /etc/v2ray | ||||
| ENV TZ=Asia/Shanghai | ||||
|   | ||||
| @@ -1,9 +1,9 @@ | ||||
| # Dockerfile for v2ray based alpine | ||||
| # Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com> | ||||
| # Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com> | ||||
| # Reference URL: | ||||
| # https://github.com/v2ray/v2ray-core | ||||
| # https://github.com/v2ray/geoip | ||||
| # https://github.com/v2ray/domain-list-community | ||||
| # https://github.com/v2fly/v2ray-core | ||||
| # https://github.com/v2fly/geoip | ||||
| # https://github.com/v2fly/domain-list-community | ||||
|  | ||||
| FROM --platform=${TARGETPLATFORM} alpine:latest | ||||
| LABEL maintainer="Teddysun <i@teddysun.com>" | ||||
| @@ -14,12 +14,12 @@ COPY v2ray.sh /root/v2ray.sh | ||||
| COPY config.json /etc/v2ray/config.json | ||||
| RUN set -ex \ | ||||
| 	&& apk add --no-cache tzdata ca-certificates \ | ||||
| 	&& mkdir -p /var/log/v2ray \ | ||||
| 	&& mkdir -p /var/log/v2ray /usr/share/v2ray \ | ||||
| 	&& chmod +x /root/v2ray.sh \ | ||||
| 	&& /root/v2ray.sh "${TARGETPLATFORM}" \ | ||||
| 	&& rm -fv /root/v2ray.sh \ | ||||
| 	&& wget -O /usr/bin/geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat \ | ||||
| 	&& wget -O /usr/bin/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat | ||||
| 	&& wget -O /usr/share/v2ray/geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat \ | ||||
| 	&& wget -O /usr/share/v2ray/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat | ||||
|  | ||||
| VOLUME /etc/v2ray | ||||
| ENV TZ=Asia/Shanghai | ||||
|   | ||||
		Reference in New Issue
	
	Block a user