FROM public.ecr.aws/lambda/python:3.9
RUN /var/lang/bin/python -m pip install --upgrade pip
RUN python -m pip install amazon-textract-caller --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 [ "main.lambda_handler" ]
