-
Notifications
You must be signed in to change notification settings - Fork 633
/
Dockerfile
27 lines (22 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM alpine:latest
ENV VER=3.10
ENV CONFIG_JSON1={\"log\":{\"access\":\"\",\"error\":\"\",\"loglevel\":\"warning\"},\"inbound\":{\"protocol\":\"vmess\",\"port\":
#ENV PORT=8080
ENV CONFIG_JSON2=,\"settings\":{\"clients\":[{\"id\":\"
#ENV UUID=91cb66ba-a373-43a0-8169-33d4eeaeb857
ENV CONFIG_JSON3=\",\"alterId\":64}]},\"streamSettings\":{\"network\":\"ws\"}},\"inboundDetour\":[],\"outbound\":{\"protocol\":\"freedom\",\"settings\":{}}}
RUN apk add --no-cache --virtual .build-deps ca-certificates curl \
&& mkdir -m 777 /v2raybin \
&& cd /v2raybin \
&& curl -L -H "Cache-Control: no-cache" -o v2ray.zip https://github.com/v2ray/v2ray-core/releases/download/v$VER/v2ray-linux-64.zip \
&& unzip v2ray.zip \
&& mv /v2raybin/v2ray-v$VER-linux-64/v2ray /v2raybin/ \
&& mv /v2raybin/v2ray-v$VER-linux-64/v2ctl /v2raybin/ \
&& mv /v2raybin/v2ray-v$VER-linux-64/geoip.dat /v2raybin/ \
&& mv /v2raybin/v2ray-v$VER-linux-64/geosite.dat /v2raybin/ \
&& chmod +x /v2raybin/v2ray \
&& rm -rf v2ray.zip \
&& rm -rf v2ray-v$VER-linux-64
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD /entrypoint.sh