Skip to content

Commit a681ae7

Browse files
Merge pull request #118 from svurputoor/feat--textract-to-comprehend-medical-Issue-#117
feat: new construct textract to comprehend medical
2 parents 9f54c18 + 43cbbcd commit a681ae7

18 files changed

+1390
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

API.md

Lines changed: 352 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lambda/.DS_Store

6 KB
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM public.ecr.aws/lambda/python:3.9-x86_64
2+
RUN /var/lang/bin/python -m pip install --upgrade pip
3+
COPY app/requirements.txt ${LAMBDA_TASK_ROOT}/
4+
RUN python -m pip install -r ${LAMBDA_TASK_ROOT}/requirements.txt --target "${LAMBDA_TASK_ROOT}"
5+
6+
# Copy function code
7+
COPY app/* ${LAMBDA_TASK_ROOT}/
8+
9+
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
10+
CMD [ "main.handler" ]

lambda/textract_comprehend_medical/app/__init__.py

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
3+
exec /usr/bin/aws-lambda-rie /usr/local/bin/python -m main $1
4+
else
5+
exec /usr/local/bin/python -m main $1
6+
fi

0 commit comments

Comments
 (0)