Spaces:
Sleeping
Sleeping
Download Dockerfile from soradata/AlphaEdge-Registry: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/soradata/AlphaEdge-Registry/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/soradata/AlphaEdge-Registry/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/soradata/AlphaEdge-Registry/resolve/main/Dockerfile
519 Bytes
| 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"] |