File size: 639 Bytes
a028193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ============================================================
# 🐳 DOCKERFILE - Streaming API (FastAPI)
# Compatible avec Hugging Face Spaces
# ============================================================

FROM python:3.11-slim

# Définir le répertoire de travail
WORKDIR /app

# Copier les fichiers du projet
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Exposer le port utilisé par Uvicorn (important pour Hugging Face)
EXPOSE 7860

# Lancer l'application
# Hugging Face attend que ton app tourne sur le port 7860
CMD ["uvicorn", "streaming_api:app", "--host", "0.0.0.0", "--port", "7860"]