#!/bin/bash # Start the Docker daemon in the background dockerd-entrypoint.sh & # Wait for the Docker daemon to be ready until docker info >/dev/null 2>&1; do echo "Waiting for Docker daemon to start..." sleep 1 done echo "Docker daemon is running." # Run the Flask application # Hugging Face Spaces uses port 7860 by default python app.py --port 7860 --host 0.0.0.0