Spaces:
Sleeping
Sleeping
File size: 598 Bytes
58cd495 4ad26d7 df2ec6f 0caf46a 4ad26d7 58cd495 4ad26d7 3e80716 4ad26d7 58cd495 4ad26d7 3e80716 58cd495 4ad26d7 3e80716 0caf46a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Utiliser l'image Python officielle
FROM python:3.9-slim
# Installer pandoc et ses dépendances via apt
RUN apt-get update && apt-get install -y pandoc libgl1-mesa-glx
# Définir le répertoire de travail
WORKDIR /app
# Copier le fichier requirements.txt et installer les dépendances Python
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copier le code de l'application
COPY . .
# Exposer le port 7860 (port attendu par Hugging Face Spaces)
EXPOSE 7860
# Commande pour démarrer l'application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|