# AWS Lambda container image for agentic-custom.
# Uses the official Lambda Python base image (NOT python:3.11-slim) so the
# runtime interface client and freeze/thaw semantics are correct.
# LAMBDA_TASK_ROOT is set by the base image.

FROM public.ecr.aws/lambda/python:3.11

COPY requirements.txt ${LAMBDA_TASK_ROOT}/
RUN pip install --no-cache-dir -r ${LAMBDA_TASK_ROOT}/requirements.txt

COPY . ${LAMBDA_TASK_ROOT}/

CMD ["handler.lambda_handler"]
