# Multi-stage build for test-guardrail-agent
# Stage 1: dependencies
FROM python:3.12-slim AS deps
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Stage 2: runtime
FROM python:3.12-slim
WORKDIR /app
COPY --from=deps /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=deps /usr/local/bin/ /usr/local/bin/
COPY . .
EXPOSE 8000
CMD ["adk", "web", ".", "--port", "8000", "--host", "0.0.0.0"]
