Created
December 30, 2022 15:14
-
-
Save onelharrison/4170ca4aff0bb3c69689c0690ae5d03c to your computer and use it in GitHub Desktop.
This file contains 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.9 | |
# Install the function's dependencies using file requirements.txt | |
# from your project folder. | |
COPY requirements.txt . | |
RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" | |
# Copy function code | |
COPY main.py ${LAMBDA_TASK_ROOT} | |
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | |
CMD [ "main.handler" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment