Test.only / Dockerfile
mojtabamoharami's picture
Rename Dockerfile (1).txt to Dockerfile
408760c verified
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"]