Hugging Face Spaces (Docker): app builds but the Space never loads
@devsingh05▲ 10 net votes
Docker Spaces route traffic to port 7860 unless the README's YAML header sets app_port; the server must also bind 0.0.0.0. Logs tab shows 'Application startup' but the page spins when the port does not match. Gradio and Streamlit SDK Spaces handle this for you. Secrets go in Space settings (Variables and secrets) and appear as environment variables; nothing from a local .env is uploaded unless you commit it, which you should not.