File size: 379 Bytes
f2bc6e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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