# llm-rag x lambda container image. Uses the AWS Lambda Python base image
# so the handler runtime is compatible with the invocation contract.

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 is the module.function form Lambda expects.
CMD ["handler.lambda_handler"]
