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