From 3a470a849509d430858603d9d184430ea40c8390 Mon Sep 17 00:00:00 2001 From: Ruben Fonseca Date: Wed, 12 Apr 2023 10:32:35 +0200 Subject: [PATCH] fix(python): force pydantic 1.x major version --- layer/Python/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layer/Python/Dockerfile b/layer/Python/Dockerfile index e347349..0538546 100644 --- a/layer/Python/Dockerfile +++ b/layer/Python/Dockerfile @@ -31,7 +31,7 @@ RUN yum install -y \ # Install cython to generate native code RUN pip install --upgrade pip wheel && pip install --upgrade cython # Optimize binary size and strip debugging symbols for optimum size -RUN CFLAGS="-Os -g0 -s" pip install --no-binary pydantic -t /asset/python "aws-lambda-powertools$PACKAGE_SUFFIX" +RUN CFLAGS="-Os -g0 -s" pip install --no-binary pydantic==1.* -t /asset/python "aws-lambda-powertools$PACKAGE_SUFFIX" # Removing nonessential files RUN cd /asset && \