Jānis janhouse

tailscale-split-tunneler-vpn (latest)

Published 2026-09-21 09:52:12 +00:00 by janhouse

Installation

docker pull git.janhouse.lv/janhouse/tailscale-split-tunneler-vpn:latest
sha256:96bf0e3d205177b31d0193ee4ae582e9cb7a4ff2ed7d5c914f8baf3023ae2eb8

Images

Digest OS / Arch Size
1c2d080cda linux/amd64 91 MiB

Image Layers ( linux/amd64)

ADD alpine-minirootfs-3.21.8-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG TARGETARCH=amd64
ARG S6_OVERLAY_VERSION=3.2.0.2
ARG TAILSCALE_VERSION=1.98.4
RUN |3 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 /bin/sh -c wget -qO /tmp/apk-key.rsa.pub "https://git.janhouse.lv/api/packages/janhouse/alpine/key" && mv /tmp/apk-key.rsa.pub "/etc/apk/keys/janhouse@f261c2148938e8da25a22b53a381559d8038580cc3deada8c4bfef9283383c66.rsa.pub" && echo "https://git.janhouse.lv/api/packages/janhouse/alpine/v3.21/main" >> /etc/apk/repositories # buildkit
ARG CACHE_BUST=1
RUN |4 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 CACHE_BUST=1 /bin/sh -c apk add --no-cache openconnect=9.12-r100 oath-toolkit-oathtool curl bash xz libstdc++ libgcc util-linux-misc iptables bind-tools # buildkit
RUN |4 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 CACHE_BUST=1 /bin/sh -c TS_TARBALL="tailscale_${TAILSCALE_VERSION}_${TARGETARCH}" && curl -fsSL "https://pkgs.tailscale.com/stable/${TS_TARBALL}.tgz" | tar -xzf - -C /tmp && install -m 0755 "/tmp/${TS_TARBALL}/tailscale" /usr/local/bin/tailscale && install -m 0755 "/tmp/${TS_TARBALL}/tailscaled" /usr/local/bin/tailscaled && rm -rf "/tmp/${TS_TARBALL}" # buildkit
RUN |4 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 CACHE_BUST=1 /bin/sh -c case "${TARGETARCH}" in amd64) S6_ARCH="x86_64" ;; arm64) S6_ARCH="aarch64" ;; *) S6_ARCH="${TARGETARCH}" ;; esac && curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz" | tar -Jxpf - -C / && curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz" | tar -Jxpf - -C / # buildkit
RUN |4 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 CACHE_BUST=1 /bin/sh -c curl -fsSL https://bun.sh/install | bash -s "bun-v1.4.0" && ln -s /root/.bun/bin/bun /usr/local/bin/bun # buildkit
RUN |4 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 CACHE_BUST=1 /bin/sh -c mkdir -p /shared /var/run/tailscale /etc/s6-overlay/s6-rc.d /app # buildkit
COPY package.json /app/ # buildkit
RUN |4 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 CACHE_BUST=1 /bin/sh -c cd /app && bun install # buildkit
COPY src/ /app/src/ # buildkit
COPY scripts/healthcheck.sh /scripts/ # buildkit
RUN |4 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 TAILSCALE_VERSION=1.98.4 CACHE_BUST=1 /bin/sh -c chmod +x /scripts/healthcheck.sh # buildkit
COPY s6-overlay/ /etc/s6-overlay/ # buildkit
VOLUME [/var/lib/tailscale]
VOLUME [/shared]
ENTRYPOINT ["/init"]
HEALTHCHECK {Test:[CMD-SHELL /scripts/healthcheck.sh] Interval:30s Timeout:10s StartPeriod:0s StartInterval:0s Retries:3}

Labels

Key Value
com.docker.compose.project tailscale-split-tunneler
com.docker.compose.service vpn
com.docker.compose.version 5.4.0
Details
Container
2026-09-21 09:52:12 +00:00
496
OCI / Docker
Versions (1) View all
latest 2026-09-21