Move tesseract and dependencies to Lambda layer
seth10 opened this issue · 0 comments
seth10 commented
At the moment, zipping the repo in preparation of uploading it to AWS Lambda reduces 106MB uncompressed to 39MB zipped. This is surprisingly close to the 50MB limit, and well above the 3MB limit for inline editing [1].
Inline editing is a very handy feature for a rapid development and testing cycle. To enable this, I could create a Lambda layer with tesseract and all other dependencies. Then the Lambda deployment package would just be lambda_function.py, currently 6KB zipped to 3KB, well below 3MB.
A public Lambda layer would also easy the deployment process for new developers and help with #4.
[1] https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html