# Vertex AI custom prediction container for agentic-custom.
# Vertex probes /health on the container port and POSTs /predict for each
# request batch. AIP_HTTP_PORT is injected by Vertex; defaults to 8080.

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}"]
