Spaces:
Sleeping
Sleeping
File size: 519 Bytes
1ea58ae 49dc5da 1ea58ae 49dc5da 1ea58ae 49dc5da 625e519 9de4be3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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"] |