From 239f8934e9e39309b2f2d32db924b50f04c22c20 Mon Sep 17 00:00:00 2001 From: Tobias Waslowski Date: Wed, 24 Jan 2024 10:04:24 +0100 Subject: [PATCH] Downgrade python docker images to 3.11 This is due to an issue in multidict, which is introduced by shared/aiohttp, which does not support 3.12 as of now. https://github.com/aio-libs/multidict/issues/887 --- backend/docker/Dockerfile-generative.template | 4 ++-- backend/docker/Dockerfile-nlp.template | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/docker/Dockerfile-generative.template b/backend/docker/Dockerfile-generative.template index 4a81357..c7cbd70 100644 --- a/backend/docker/Dockerfile-generative.template +++ b/backend/docker/Dockerfile-generative.template @@ -1,7 +1,7 @@ -FROM public.ecr.aws/lambda/python:3.12 +FROM public.ecr.aws/lambda/python:3.11 # Install Python and zip -RUN dnf install -y git +RUN yum install -y git # Set up a working directory WORKDIR /var/task diff --git a/backend/docker/Dockerfile-nlp.template b/backend/docker/Dockerfile-nlp.template index 87fae53..315c411 100644 --- a/backend/docker/Dockerfile-nlp.template +++ b/backend/docker/Dockerfile-nlp.template @@ -1,7 +1,7 @@ -FROM public.ecr.aws/lambda/python:3.12 +FROM public.ecr.aws/lambda/python:3.11 # Install Python and zip -RUN dnf install -y git +RUN yum install -y git # Set up a working directory WORKDIR /var/task