forked from zizifn/edgetunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (36 loc) · 892 Bytes
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM v2fly/v2fly-core:latest
# ADD configure.sh /configure.sh
# RUN apk add --no-cache ca-certificates curl unzip \
# && chmod +x /configure.sh
# CMD /configure.sh
ARG UUID
ENV UUID=$UUID
RUN touch /etc/v2ray/config.json
RUN cat > /etc/v2ray/config.json <<'EOF' \
{ \
"inbounds": [\
{\
"port": $PORT,\
"protocol": "vmess",\
"settings": {\
"clients": [\
{\
"id": "$UUID",\
"alterId": 64\
}\
],\
"disableInsecureEncryption": true\
},\
"streamSettings": {\
"network": "ws"\
}\
}\
],\
"outbounds": [\
{\
"protocol": "freedom"\
}\
]\
}\
EOF
CMD [ "/usr/bin/v2ray", "-config", "/etc/v2ray/config.json" ]