across/docker/v2ray/Dockerfile

26 lines
861 B
Docker
Raw Normal View History

2019-11-07 22:12:45 +09:00
# Dockerfile for v2ray based alpine
2020-01-20 21:40:05 +09:00
# Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
2019-11-07 22:12:45 +09:00
# Reference URL:
# https://github.com/v2ray/v2ray-core
2019-11-29 21:59:52 +09:00
# https://github.com/v2ray/geoip
# https://github.com/v2ray/domain-list-community
2019-11-07 22:12:45 +09:00
FROM alpine:latest
LABEL maintainer="Teddysun <i@teddysun.com>"
2020-02-20 20:50:14 +09:00
WORKDIR /root
COPY v2ray.sh /root/v2ray.sh
COPY config.json /etc/v2ray/config.json
2019-11-07 22:12:45 +09:00
RUN set -ex \
&& apk add --no-cache tzdata ca-certificates \
2020-02-20 20:50:14 +09:00
&& mkdir -p /var/log/v2ray \
&& chmod +x /root/v2ray.sh \
&& /root/v2ray.sh \
&& rm -fv /root/v2ray.sh \
2020-10-02 08:51:19 +09:00
&& 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
2019-11-07 22:12:45 +09:00
VOLUME /etc/v2ray
ENV TZ=Asia/Shanghai
2020-07-06 11:03:06 +09:00
CMD [ "/usr/bin/v2ray", "-config", "/etc/v2ray/config.json" ]