FROM alpine:3.20 ARG SINGBOX_VER=1.8.10 ARG VLESS_URL RUN apk add --no-cache curl ca-certificates tar jq bash coreutils netcat-openbsd python3 && update-ca-certificates \ && curl -L -o /tmp/sb.tar.gz https://github.com/SagerNet/sing-box/releases/download/v${SINGBOX_VER}/sing-box-${SINGBOX_VER}-linux-amd64.tar.gz \ && tar -xf /tmp/sb.tar.gz -C /tmp \ && mv /tmp/sing-box-${SINGBOX_VER}-linux-amd64/sing-box /usr/local/bin/sing-box \ && chmod +x /usr/local/bin/sing-box \ && adduser -D -u 1000 suser COPY --chown=suser:suser config/client.template.json /app/ COPY --chown=suser:suser scripts/gen-client-from-url.sh scripts/menu.sh /app/ COPY --chown=suser:suser docker/entrypoint.sh /app/ COPY --chown=suser:suser web/ /app/web/ RUN chmod +x /app/gen-client-from-url.sh /app/entrypoint.sh /app/menu.sh ENV VLESS_URL=$VLESS_URL EXPOSE 8082 9090 3456 ENTRYPOINT ["/app/entrypoint.sh"]