FROM python:3.9-slim WORKDIR /app # Installation des dépendances COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copie du code COPY . . # Hugging Face Spaces écoute sur le port 7860 EXPOSE 7860 # Lancement avec Gunicorn (app:server signifie fichier app.py, variable server) CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:server", "--timeout", "120"]