TestTunshell / entrypoint.sh
Bharani77Hugs's picture
Create entrypoint.sh
235ecb3 verified
raw
history blame contribute delete
496 Bytes
#!/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