Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /home/user/mlflow | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| RUN mkdir -p /home/user/mlflow/mlruns | |
| EXPOSE 7860 | |
| CMD ["mlflow", "server", \ | |
| "--host", "0.0.0.0", \ | |
| "--port", "7860", \ | |
| "--backend-store-uri", "sqlite:////home/user/mlflow/mlflow.db", \ | |
| "--default-artifact-root", "s3://mlflow-artifacts-elicopter6/", \ | |
| "--serve-artifacts"] |