FROM python:3.10-slim # Installation de MLflow RUN pip install --no-cache-dir mlflow # Exposition du port requis par Hugging Face EXPOSE 7860 # Force MLflow à écrire sa base et ses artefacts dans /tmp (nécessaire sur HF Spaces) ENV MLFLOW_BACKEND_STORE_URI=sqlite:////tmp/mlflow.db ENV MLFLOW_ARTIFACT_ROOT=/tmp/mlflow-artifacts # Commande de lancement avec le flag --workers 1 ajouté CMD ["mlflow", "server", "--host", "0.0.0.0", "--port", "7860", "--allowed-hosts", "*", "--serve-artifacts", "--workers", "1"]