mytest1 / Dockerfile
moef78's picture
Create Dockerfile
5792a65 verified
Raw History Blame Contribute Delete
405 Bytes
FROM alpine:latest
RUN apk add --no-cache ca-certificates bash wget
# دانلود هسته Xray
RUN wget -qO /tmp/xray.zip https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip && \
unzip /tmp/xray.zip -d /usr/local/bin/ && \
chmod +x /usr/local/bin/xray && \
rm /tmp/xray.zip
COPY config.json /etc/xray/config.json
CMD /usr/local/bin/xray -config /etc/xray/config.json