# Dockerfile FROM python:3.10-slim # Variables d'environnement pour HF ENV TRANSFORMERS_CACHE=/tmp/.cache/huggingface/transformers ENV HF_HOME=/tmp/.cache/huggingface # Dépendances système RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Dépendances Python COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copie app COPY app.py /app/app.py WORKDIR /app # Expose EXPOSE 7860 # Lancer l'app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]