Spaces:
Sleeping
Sleeping
Download Dockerfile from nguyentranAI2/MlLog: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/nguyentranAI2/MlLog/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nguyentranAI2/MlLog/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nguyentranAI2/MlLog/resolve/main/Dockerfile
469 Bytes
| FROM python:3.11-slim | |
| RUN pip install --no-cache-dir mlflow==2.17.0 | |
| # HF Spaces yêu cầu app chạy ở port 7860 | |
| ENV MLFLOW_HOST=0.0.0.0 | |
| ENV MLFLOW_PORT=7860 | |
| # Lưu data vào /data (cần persistent storage, xem note bên dưới) | |
| RUN mkdir -p /data/mlruns /data/artifacts && chmod -R 777 /data | |
| EXPOSE 7860 | |
| CMD mlflow server \ | |
| --host 0.0.0.0 \ | |
| --port 7860 \ | |
| --backend-store-uri sqlite:////data/mlflow.db \ | |
| --default-artifact-root /data/artifacts |