-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·22 lines (19 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine
MAINTAINER zterry <[email protected]>
ENV V2RAY_VERSION "4.44.0"
ADD supervisord.conf /etc/supervisord.conf
ADD pgfast /go/
RUN apk add --no-cache git supervisor && \
mkdir -p /usr/local/share/v2ray/ /etc/v2ray && \
wget -O ./v2ray.zip https://github.com/v2fly/v2ray-core/releases/download/v${V2RAY_VERSION}/v2ray-linux-64.zip > /dev/null 2>&1 && \
wget -O /usr/local/share/v2ray/geoip.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat > /dev/null 2>&1 && \
wget -O /usr/local/share/v2ray/geosite.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat > /dev/null 2>&1 && \
unzip v2ray.zip && chmod +x v2ray v2ctl && \
mv v2ray v2ctl /usr/bin/ && \
# mv geosite.dat geoip.dat /usr/local/share/v2ray/ && \
mv config.json /etc/v2ray/config.json && \
rm v2ray.zip vpoint_vmess_freedom.json vpoint_socks_vmess.json geoip.dat geosite.dat
EXPOSE 4080
EXPOSE 5080
WORKDIR /go
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]