Spaces:
Paused
Paused
Upload Dockerfile (1).txt
Browse files- Dockerfile (1).txt +28 -0
Dockerfile (1).txt
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y curl wget unzip ca-certificates && rm -rf /var/lib/apt/lists/*
|
| 4 |
+
|
| 5 |
+
RUN wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip && \
|
| 6 |
+
unzip Xray-linux-64.zip -d /usr/local/bin/ && chmod +x /usr/local/bin/xray
|
| 7 |
+
|
| 8 |
+
# ساخت مستقیم کانفیگ بهینه شده برای سرعت و اینستاگرام
|
| 9 |
+
RUN echo '{ \
|
| 10 |
+
"log": {"loglevel": "warning"}, \
|
| 11 |
+
"dns": {"servers": ["1.1.1.1", "8.8.8.8"]}, \
|
| 12 |
+
"inbounds": [{ \
|
| 13 |
+
"port": 7860, \
|
| 14 |
+
"protocol": "vless", \
|
| 15 |
+
"settings": { \
|
| 16 |
+
"clients": [{"id": "b9774386-c11c-4fa8-8bb6-69a156172bbe"}], \
|
| 17 |
+
"decryption": "none" \
|
| 18 |
+
}, \
|
| 19 |
+
"streamSettings": { \
|
| 20 |
+
"network": "ws", \
|
| 21 |
+
"wsSettings": {"path": "/updategsm"} \
|
| 22 |
+
}, \
|
| 23 |
+
"sniffing": {"enabled": true, "destOverride": ["http", "tls"]} \
|
| 24 |
+
}], \
|
| 25 |
+
"outbounds": [{"protocol": "freedom"}] \
|
| 26 |
+
}' > /config.json
|
| 27 |
+
|
| 28 |
+
CMD ["xray", "-config", "/config.json"]
|