| 123456789101112131415161718192021222324 |
- # Dockerfile for v2ray based alpine
- # Copyright (C) 2019 - 2025 Teddysun <[email protected]>
- # Reference URL:
- # https://github.com/v2fly/v2ray-core
- # https://github.com/Loyalsoldier/v2ray-rules-dat
- FROM alpine:latest
- LABEL maintainer="Teddysun <[email protected]>"
- WORKDIR /root
- 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 /usr/share/v2ray \
- && chmod +x /root/v2ray.sh \
- && /root/v2ray.sh \
- && rm -fv /root/v2ray.sh \
- && wget -O /usr/share/v2ray/geosite.dat https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat \
- && wget -O /usr/share/v2ray/geoip.dat https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat
- VOLUME /etc/v2ray
- ENV TZ=Asia/Shanghai
- CMD [ "/usr/bin/v2ray", "run", "-config", "/etc/v2ray/config.json" ]
|