Created
December 17, 2020 09:07
-
-
Save philschmid/3d6fda8be334f25c5c613e69f2414842 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM public.ecr.aws/lambda/python:3.8 | |
| # Copy function code and models into our /var/task | |
| COPY ./ ${LAMBDA_TASK_ROOT}/ | |
| # install our dependencies | |
| RUN python3 -m pip install -r requirements.txt --target ${LAMBDA_TASK_ROOT} | |
| # Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | |
| CMD [ "handler.handler" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment