mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00

This will help minimize the Docker image size, as below: ``` REPOSITORY TAG IMAGE ID CREATED SIZE pr-agent after caed11a1ed9c 2 hours ago 1.48GB pr-agent before d6f12eb987b8 3 hours ago 1.59GB ```
13 lines
359 B
Docker
13 lines
359 B
Docker
FROM public.ecr.aws/lambda/python:3.10
|
|
|
|
RUN yum update -y && \
|
|
yum install -y gcc python3-devel git && \
|
|
yum clean all
|
|
|
|
ADD pyproject.toml requirements.txt .
|
|
RUN pip install --no-cache-dir . && rm pyproject.toml
|
|
RUN pip install --no-cache-dir mangum==0.17.0
|
|
COPY pr_agent/ ${LAMBDA_TASK_ROOT}/pr_agent/
|
|
|
|
CMD ["pr_agent.servers.serverless.serverless"]
|