FROM python:3.9-slim WORKDIR /code # Copier les fichiers de requirements COPY requirements.txt . # Installer les dépendances RUN pip install --no-cache-dir -r requirements.txt # Copier le code de l'application COPY . . # Exposer le port EXPOSE 7860 # Commande pour démarrer l'application CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]