Created
April 13, 2022 22:13
-
-
Save joshatxantie/e6d4ef927e077aaeb7ceffeaba6526f5 to your computer and use it in GitHub Desktop.
Python 3.8 AWS Lambda PostgreSQL
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 . ${LAMBDA_TASK_ROOT} | |
RUN yum install -y gcc python27 python27-devel postgresql-devel | |
RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" | |
CMD [ "app.handler" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hope this helps, couldn't find this anywhere else except for one stack overflow question that actually helped me solve this.