FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim

ENV PYTHONUNBUFFERED=1 \
    UV_COMPILE_BYTECODE=1 \
    UV_LINK_MODE=copy

COPY agents-builder /agents-builder
COPY real-estate-lead-agent /app

WORKDIR /app
RUN uv sync --frozen --no-dev --no-editable

USER 65532:65532
EXPOSE 8080

ENTRYPOINT ["/app/.venv/bin/real-estate-lead-web-api"]
CMD ["--host", "0.0.0.0", "--port", "8080"]
