FROM python:3.11-slim # Install uv COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv WORKDIR /app # Create a virtual environment and install mlflow inside it RUN uv venv /app/.venv && \ uv pip install --python /app/.venv mlflow # Add the virtual environment to the PATH so the mlflow command is recognized ENV PATH="/app/.venv/bin:$PATH" EXPOSE 8000 # Start the server CMD ["mlflow", "server", "--host", "0.0.0.0", "--port", "8000", "--backend-store-uri", "sqlite:///mlflow.db", "--default-artifact-root", "./mlartifacts"]