d2ray/Dockerfile
quackerd b0cc42d043
All checks were successful
continuous-integration/drone/push Build is passing
Xray 1.8.13
2024-06-06 11:40:57 +00:00

21 lines
563 B
Docker

FROM alpine:latest
ENV VER_XRAY 1.8.13
# install packages
RUN set -xe && apk add --no-cache unzip wget openssl python3 py3-jinja2 supervisor apache2-utils bash libqrencode libqrencode-tools
# download packages
RUN set -xe && \
mkdir -p /downloads && \
wget -P /downloads https://github.com/XTLS/Xray-core/releases/download/v$VER_XRAY/Xray-linux-64.zip && \
unzip /downloads/Xray-linux-64.zip -d /opt/xray && \
rm -rf /downloads
COPY ./opt /opt/
# remove packages
RUN set -xe && apk del unzip wget
VOLUME /etc/d2ray
CMD ["sh", "/opt/init.sh"]