FROM public.ecr.aws/lambda/python:3.9-x86_64

RUN /var/lang/bin/python -m pip install --upgrade pip
RUN python -m pip install amazon-textract-idp-cdk-manifest marshmallow --target "${LAMBDA_TASK_ROOT}"

# Copy function code
COPY app/* ${LAMBDA_TASK_ROOT}/

# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "sync_main.lambda_handler" ]