Commit 65d0cdc 1 parent 35d57ae commit 65d0cdc Copy full SHA for 65d0cdc
File tree 1 file changed +38
-5
lines changed
1 file changed +38
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.5
1
+ FROM v2fly/v2fly-core:latest
2
2
3
- ADD configure.sh /configure.sh
3
+ # ADD configure.sh /configure.sh
4
4
5
- RUN apk add --no-cache ca-certificates curl unzip \
6
- && chmod +x /configure.sh
5
+ # RUN apk add --no-cache ca-certificates curl unzip \
6
+ # && chmod +x /configure.sh
7
7
8
- CMD /configure.sh
8
+ # CMD /configure.sh
9
+
10
+ ARG UUID
11
+ ENV UUID=$UUID
12
+
13
+ RUN cat > /usr/local/etc/v2ray/config.json <<'EOF' \
14
+ { \
15
+ "inbounds" : [\
16
+ {\
17
+ "port" : $PORT,\
18
+ "protocol" : "vmess" ,\
19
+ "settings" : {\
20
+ "clients" : [\
21
+ {\
22
+ "id" : "$UUID" ,\
23
+ "alterId" : 64\
24
+ }\
25
+ ],\
26
+ "disableInsecureEncryption" : true\
27
+ },\
28
+ "streamSettings" : {\
29
+ "network" : "ws" \
30
+ }\
31
+ }\
32
+ ],\
33
+ "outbounds" : [\
34
+ {\
35
+ "protocol" : "freedom" \
36
+ }\
37
+ ]\
38
+ }\
39
+ EOF
40
+
41
+ CMD [ "/usr/bin/v2ray" , "-config" , "/etc/v2ray/config.json" ]
You can’t perform that action at this time.
0 commit comments