Jānis janhouse

tailscale-split-tunneler-vpn (latest)

Published 2026-02-15 01:07:21 +00:00 by janhouse

Installation

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

Image Layers

ADD alpine-minirootfs-3.21.6-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG TARGETARCH=amd64
ARG S6_OVERLAY_VERSION=3.2.0.2
RUN |2 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 /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 |3 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 CACHE_BUST=1 /bin/sh -c apk add --no-cache openconnect=9.12-r100 tailscale oath-toolkit-oathtool curl bash xz libstdc++ libgcc util-linux-misc iptables bind-tools # buildkit
RUN |3 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 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 |3 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 CACHE_BUST=1 /bin/sh -c curl -fsSL https://bun.sh/install | bash && ln -s /root/.bun/bin/bun /usr/local/bin/bun # buildkit
RUN |3 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 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 |3 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 CACHE_BUST=1 /bin/sh -c cd /app && bun install # buildkit
COPY src/ /app/src/ # buildkit
COPY scripts/healthcheck.sh /scripts/ # buildkit
RUN |3 TARGETARCH=amd64 S6_OVERLAY_VERSION=3.2.0.2 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 &{["CMD-SHELL" "/scripts/healthcheck.sh"] "30s" "10s" "0s" "0s" '\x03'}

Labels

Key Value
com.docker.compose.project tailscale-split-tunneler
com.docker.compose.service vpn
com.docker.compose.version 2.40.3
Details
Container
2026-02-15 01:07:21 +00:00
12
OCI / Docker
linux/amd64
72 MiB
Versions (1) View all
latest 2026-02-15