| # debian.sh --arch 'amd64' out/ 'bookworm' '@1776729600' |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates tini curl unzip openvpn iproute2 wireguard-tools iptables procps && rm -rf /var/lib/apt/lists/* # buildkit |
| ARG XRAY_VERSION=26.3.27 |
| RUN |1 XRAY_VERSION=26.3.27 /bin/sh -c set -eux; arch="$(dpkg --print-architecture)"; case "$arch" in amd64) xarch="64" ;; arm64) xarch="arm64-v8a" ;; *) echo "unsupported arch: $arch" >&2; exit 1 ;; esac; curl -fsSL "https://github.com/XTLS/Xray-core/releases/download/v${XRAY_VERSION}/Xray-linux-${xarch}.zip" -o /tmp/xray.zip && unzip /tmp/xray.zip -d /tmp/xray && mv /tmp/xray/xray /usr/local/bin/xray && chmod +x /usr/local/bin/xray && rm -rf /tmp/xray /tmp/xray.zip # buildkit |
| RUN |1 XRAY_VERSION=26.3.27 /bin/sh -c mkdir -p /var/lib/apos /tmp/apos && chmod 755 /var/lib/apos /tmp/apos # buildkit |
| COPY /out/apos /usr/local/bin/apos # buildkit |
| ENTRYPOINT ["tini" "--"] |
| CMD ["/usr/local/bin/apos"] |