mlflow-repo/Dockerfile.mlflow-server

20 lines
618 B
Text

# Dockerfile.mlflow-server
# Runs a local MLflow tracking server with the repository's model registry and artifacts.
FROM python:3.13-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir mlflow==3.14.0 sqlalchemy
COPY mlflow.db /app/mlflow.db
COPY mlartifacts /app/mlartifacts
EXPOSE 8080
CMD ["mlflow", "server", "--backend-store-uri", "sqlite:///app/mlflow.db", "--default-artifact-root", "file:///app/mlartifacts", "--host", "0.0.0.0", "--port", "8080", "--workers", "1"]