FROM python:3.10-slim # Évite les problèmes d'affichage logs ENV PYTHONUNBUFFERED=1 # Installer dépendances système (important pour torch & pandas) RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Dossier de travail WORKDIR /app # Copier fichiers COPY . /app # Installer dépendances Python RUN pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir -r requirements.txt # Port utilisé par Hugging Face EXPOSE 7860 # Lancer ton app CMD ["python", "app.py"]