# Start Tailscale daemon in background | |
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 > /dev/null 2>&1 & | |
# Give it a few seconds to initialize | |
sleep 3 | |
# Bring up the Tailscale interface (without SSH) | |
tailscale up --netfilter-mode=off | |
# Start Flask app via Gunicorn | |
exec gunicorn --bind 0.0.0.0:7860 app:app |