Skip to content

Instantly share code, notes, and snippets.

@joshatxantie
Created April 13, 2022 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshatxantie/e6d4ef927e077aaeb7ceffeaba6526f5 to your computer and use it in GitHub Desktop.
Save joshatxantie/e6d4ef927e077aaeb7ceffeaba6526f5 to your computer and use it in GitHub Desktop.
Python 3.8 AWS Lambda PostgreSQL
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" ]
@joshatxantie
Copy link
Author

Hope this helps, couldn't find this anywhere else except for one stack overflow question that actually helped me solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment