Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -1,3 +1,6 @@
|
|
| 1 |
-
FROM
|
| 2 |
ENV PORT=7860
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM v2fly/v2fly-core:latest
|
| 2 |
ENV PORT=7860
|
| 3 |
+
RUN mkdir -p /etc/v2ray
|
| 4 |
+
RUN echo '{"log":{"loglevel":"warning"},"inbounds":[{"port":7860,"protocol":"vmess","settings":{"clients":[{"id":"UUID_KEY"}]},"streamSettings":{"network":"ws","wsSettings":{"path":"/"}}}],"outbounds":[{"protocol":"freedom","settings":{}}]}' > /etc/v2ray/config.json
|
| 5 |
+
CMD sed -i "s/UUID_KEY/$UUID/g" /etc/v2ray/config.json && /usr/bin/v2ray run -c /etc/v2ray/config.json
|
| 6 |
+
|