Skip to content

Commit 65d0cdc

Browse files
committed
chore: update
1 parent 35d57ae commit 65d0cdc

File tree

1 file changed

+38
-5
lines changed

1 file changed

+38
-5
lines changed

Dockerfile

+38-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,41 @@
1-
FROM alpine:3.5
1+
FROM v2fly/v2fly-core:latest
22

3-
ADD configure.sh /configure.sh
3+
# ADD configure.sh /configure.sh
44

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
77

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" ]

0 commit comments

Comments
 (0)