FROM alpine:latest RUN apk add --no-cache wget unzip curl RUN wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip && \ unzip Xray-linux-64.zip && \ mv xray /usr/local/bin/ && \ chmod +x /usr/local/bin/xray && \ rm -rf Xray-linux-64.zip RUN mkdir -p /etc/xray && echo '{\ "inbounds": [{\ "port": 7860,\ "protocol": "vless",\ "settings": {\ "clients": [{"id": "55d61055-1a7f-4bc5-aca2-4ee78c738b60"}],\ "decryption": "none"\ },\ "streamSettings": {\ "network": "ws",\ "wsSettings": {"path": "/minzocore"}\ }\ }],\ "outbounds": [{\ "protocol": "freedom"\ }]\ }' > /etc/xray/config.json EXPOSE 7860 CMD ["/usr/local/bin/xray", "-config", "/etc/xray/config.json"]