# Container image for the agentic-adk-multi x vertex-fastapi cell.
# Vertex custom containers listen on $AIP_HTTP_PORT (default 8080) and expose
# /health + /predict. Uvicorn binds 0.0.0.0 so the front-end proxy can reach it.

FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

ENV AIP_HTTP_PORT=8080
ENV PORT=8080
EXPOSE 8080

CMD ["sh", "-c", "uvicorn predictor:app --host 0.0.0.0 --port ${AIP_HTTP_PORT:-${PORT:-8080}}"]
