FROM debian:bookworm-slim ENV XRAY_VERSION=v26.3.27 RUN apt-get update \ && apt-get install -y --no-install-recommends \ ca-certificates bash curl wget unzip openssl \ && rm -rf /var/lib/apt/lists/* COPY setup.sh /tmp/setup.sh COPY config.json /etc/xray/g2ray.json RUN chmod +x /tmp/setup.sh \ && /tmp/setup.sh \ && rm /tmp/setup.sh EXPOSE 7860 CMD ["/usr/local/bin/xray", "run", "-c", "/etc/xray/g2ray.json"]