VPN-Proxy

singbox-tun-gateway (latest)

Published 2026-06-16 13:55:21 +03:00 by mehrdad

Installation

docker pull git.neoh.ir/vpn-proxy/singbox-tun-gateway:latest
sha256:5008fd6d2966bdc39839e0e6c54787914abaf3dc9e748dfaa34c8cd9bb192b1c

Images

Digest OS / Arch Size
ec5d6b6f6d linux/amd64 26 MiB
a43e528c65 linux/arm64 25 MiB
208711cef6 linux/arm/v7 24 MiB

Image Layers ( linux/amd64)

ADD alpine-minirootfs-3.24.1-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache ca-certificates curl iproute2 iptables nftables tzdata && update-ca-certificates # buildkit
ARG TARGETPLATFORM=linux/amd64
ARG SING_BOX_VERSION=1.12.17
RUN |2 TARGETPLATFORM=linux/amd64 SING_BOX_VERSION=1.12.17 /bin/sh -c ARCH=$(case ${TARGETPLATFORM} in "linux/amd64") echo "amd64" ;; "linux/arm64") echo "arm64" ;; "linux/arm/v7") echo "armv7" ;; "linux/arm/v6") echo "armv6" ;; "linux/386") echo "386" ;; "linux/mips64") echo "mips64" ;; "linux/mips64le") echo "mips64le" ;; "linux/mips") echo "mips" ;; "linux/mipsle") echo "mipsle" ;; "linux/ppc64le") echo "ppc64le" ;; "linux/riscv64") echo "riscv64" ;; "linux/s390x") echo "s390x" ;; *) echo "amd64" ;; esac) && echo "Downloading sing-box for ${ARCH}..." && wget -q -O /tmp/sing-box.tar.gz "https://github.com/SagerNet/sing-box/releases/download/v${SING_BOX_VERSION}/sing-box-${SING_BOX_VERSION}-linux-${ARCH}.tar.gz" && tar -xzf /tmp/sing-box.tar.gz -C /tmp && mv /tmp/sing-box-${SING_BOX_VERSION}-linux-${ARCH}/sing-box /usr/local/bin/sing-box && chmod +x /usr/local/bin/sing-box && rm -rf /tmp/sing-box* && sing-box version # buildkit
COPY /build/vpn-converter /usr/local/bin/vpn-converter # buildkit
WORKDIR /app
COPY entrypoint.sh /entrypoint.sh # buildkit
RUN |2 TARGETPLATFORM=linux/amd64 SING_BOX_VERSION=1.12.17 /bin/sh -c chmod +x /entrypoint.sh # buildkit
RUN |2 TARGETPLATFORM=linux/amd64 SING_BOX_VERSION=1.12.17 /bin/sh -c mkdir -p /etc/sing-box # buildkit
RUN |2 TARGETPLATFORM=linux/amd64 SING_BOX_VERSION=1.12.17 /bin/sh -c mkdir -p /dev/net && mknod /dev/net/tun c 10 200 && chmod 666 /dev/net/tun # buildkit
EXPOSE [10808/tcp]
LABEL maintainer=Mehrdad Amini <[email protected]>
LABEL description=sing-box TUN Gateway - Multi-Architecture VPN Gateway
LABEL org.opencontainers.image.title=singbox-tun-gateway
LABEL org.opencontainers.image.description=Multi-architecture VPN gateway using sing-box with TUN mode
LABEL org.opencontainers.image.authors=Mehrdad Amini <[email protected]>
ENTRYPOINT ["/entrypoint.sh"]
CMD ["sing-box" "run" "-c" "/etc/sing-box/config.json"]

Labels

Key Value
description sing-box TUN Gateway - Multi-Architecture VPN Gateway
maintainer Mehrdad Amini <[email protected]>
org.opencontainers.image.authors Mehrdad Amini <[email protected]>
org.opencontainers.image.description Multi-architecture VPN gateway using sing-box with TUN mode
org.opencontainers.image.title singbox-tun-gateway
Details
Container
2026-06-16 13:55:21 +03:00
0
OCI / Docker
Versions (1) View all
latest 2026-06-16