Updated Dockerfile.lambda for python version 3.12

Updated Dockerfile.lambda for python version 3.12
This commit is contained in:
saumil-kapadia-stellantispublic
2025-04-06 22:40:04 +05:30
committed by GitHub
parent d4cc57c32a
commit e8171b0289

View File

@ -1,10 +1,10 @@
FROM public.ecr.aws/lambda/python:3.10
FROM public.ecr.aws/lambda/python:3.12
RUN yum update -y && \
yum install -y gcc python3-devel git && \
yum clean all
RUN dnf update -y && \
dnf install -y gcc python3-devel git && \
dnf clean all
ADD pyproject.toml requirements.txt .
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/