Support deploying pr-agent on AWS Lambda

This commit is contained in:
Yuval Goldberg
2023-07-18 17:46:42 +03:00
parent 3efe08d619
commit dc67e6a66e
3 changed files with 53 additions and 6 deletions

12
docker/Dockerfile.lambda Normal file
View File

@ -0,0 +1,12 @@
FROM public.ecr.aws/lambda/python:3.10
RUN yum update -y && \
yum install -y gcc python3-devel && \
yum clean all
ADD requirements.txt .
RUN pip install -r requirements.txt && rm requirements.txt
RUN pip install mangum
COPY pr_agent/ ${LAMBDA_TASK_ROOT}/pr_agent/
CMD ["pr_agent.servers.serverless.serverless"]