FROM quay.io/feastdev/feature-server:0.68.0

# Metadata Bindings for GHCR
LABEL org.opencontainers.image.source="https://github.com/jaehyeon-kim/odctl"
LABEL org.opencontainers.image.description="Feast feature server, UI and registry server for the Open Data Stack, with the Iceberg and MLflow extras."

# The MLflow client matches the mlflow image (docker/mlflow/Dockerfile), which
# the UI's MLflow page and a feature view's MLflow lineage call.
ARG MLFLOW_V=3.18.0

# Feast's own image has the minimal set. /materialize reads Iceberg inside
# the container, so the iceberg extra is added; the UI's MLflow
# page imports mlflow. The extras are installed at the Feast version the base
# image already has, so pip adds packages and never moves Feast itself.
RUN FEAST_V="$(python -c 'import importlib.metadata as m; print(m.version("feast"))')" \
    && pip install --no-cache-dir \
    "feast[iceberg,mlflow]==${FEAST_V}" \
    "mlflow==${MLFLOW_V}"
