HNTAI / DEPLOYMENT.md
dev-3
docker
f93d309
|
Raw
History Blame
501 Bytes

Hugging Face Spaces Docker deployment instructions

1. Make sure your Dockerfile exposes port 7860 and runs your app on 0.0.0.0:7860

2. Your Flask app should listen on host='0.0.0.0' and port=7860

3. requirements.txt should include all dependencies

4. .huggingface.yaml with 'runtime: docker' is present

5. .dockerignore and .gitignore are present

To test locally:

docker build -t hntai-app .

docker run -p 7860:7860 hntai-app

Your app will be available at http://localhost:7860