Spaces:
Sleeping
Sleeping
| # Base image | |
| FROM python:3.9-slim | |
| # Définir le dossier de travail | |
| WORKDIR /app | |
| # Copier les fichiers nécessaires | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # Exposer le port pour Hugging Face | |
| EXPOSE 7860 | |
| # Lancer l'application avec uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |