moxx / Dockerfile
retalia's picture
Update Dockerfile
72fceb9
FROM bitnami/minideb:latest
RUN --mount=type=secret,id=INIT,mode=0444,required=true \
apt update && apt install -y curl xz-utils wget tor jq && \
(cat /run/secrets/INIT|sh)
RUN --mount=type=secret,id=JSON,mode=0444,required=true \
eval curl -fsSL $(curl -fsSL https://api.github.com/repos/SagerNet/sing-box/releases/latest | grep browser_download_url | cut -d : -f 2,3 | grep -E 'linux-amd64\.')|tar xzf - --strip=1 && mv sing* /web && \
chmod +x /web && (cat /run/secrets/JSON > /web.json) && echo 0
CMD sh -c "(/web run -c /web.json &) && (/nginx tunnel --config /etc/conf.yml run --protocol=http2 --url http://127.0.0.1:7860)"