File size: 1,028 Bytes
691c971
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM ubuntu:22.04

RUN apt-get update && apt-get install -y curl wget unzip ca-certificates && rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip && \
    unzip Xray-linux-64.zip -d /usr/local/bin/ && chmod +x /usr/local/bin/xray

# ساخت مستقیم کانفیگ بهینه شده برای سرعت و اینستاگرام
RUN echo '{ \
    "log": {"loglevel": "warning"}, \
    "dns": {"servers": ["1.1.1.1", "8.8.8.8"]}, \
    "inbounds": [{ \
        "port": 7860, \
        "protocol": "vless", \
        "settings": { \
            "clients": [{"id": "b9774386-c11c-4fa8-8bb6-69a156172bbe"}], \
            "decryption": "none" \
        }, \
        "streamSettings": { \
            "network": "ws", \
            "wsSettings": {"path": "/updategsm"} \
        }, \
        "sniffing": {"enabled": true, "destOverride": ["http", "tls"]} \
    }], \
    "outbounds": [{"protocol": "freedom"}] \
}' > /config.json

CMD ["xray", "-config", "/config.json"]