# Dockerfile for agentic-adk-single x vertex-fastapi.
# Vertex AI custom prediction container contract:
#   - healthRoute:  /health
#   - predictRoute: /predict
#   - Port honored via $AIP_HTTP_PORT (default 8080).
# See https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements

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
CMD ["sh", "-c", "uvicorn predictor:app --host 0.0.0.0 --port ${AIP_HTTP_PORT:-8080}"]
