FROM alpine:3.22 # Tailscale from the official static release (pkgs.tailscale.com), pinned via # TS_VERSION. Alpine 3.22's community package is frozen at 1.86.x (Jul 2025) # and misses a year of fixes, incl. Tailscale SSH reliability fixes in # 1.104.5+. To update: bump TS_VERSION and the add-on version together. ARG TS_VERSION=1.104.7 RUN apk add --no-cache openssh openssh-client bash git ca-certificates wget \ && wget -qO /tmp/ts.tgz "https://pkgs.tailscale.com/stable/tailscale_${TS_VERSION}_arm64.tgz" \ && tar xzf /tmp/ts.tgz -C /opt \ && mv "/opt/tailscale_${TS_VERSION}_arm64" /opt/tailscale \ && ln -s /opt/tailscale/tailscaled /usr/local/bin/tailscaled \ && ln -s /opt/tailscale/tailscale /usr/local/bin/tailscale \ && rm /tmp/ts.tgz # Low-privilege login account, key-only. bash shell for interactive jumps and # fleet scripts; home lives on /data so it survives add-on updates/restarts. # -D leaves shadow "!" (locked) which OpenSSH rejects even for pubkey auth, # so unlock it; password auth stays off in sshd_config, empty field is inert. RUN adduser -D -s /bin/bash -h /data/home/bridge bridge && passwd -u bridge COPY sshd_config /etc/ssh/sshd_config COPY run.sh /run.sh RUN chmod +x /run.sh ENTRYPOINT ["/run.sh"]