Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 135fb90

Browse files
Merge pull request #44 from awslabs/rf/force-pydantic-1
fix(python): force pydantic 1.x major version
2 parents 5120d80 + 3a470a8 commit 135fb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layer/Python/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN yum install -y \
3131
# Install cython to generate native code
3232
RUN pip install --upgrade pip wheel && pip install --upgrade cython
3333
# Optimize binary size and strip debugging symbols for optimum size
34-
RUN CFLAGS="-Os -g0 -s" pip install --no-binary pydantic -t /asset/python "aws-lambda-powertools$PACKAGE_SUFFIX"
34+
RUN CFLAGS="-Os -g0 -s" pip install --no-binary pydantic==1.* -t /asset/python "aws-lambda-powertools$PACKAGE_SUFFIX"
3535

3636
# Removing nonessential files
3737
RUN cd /asset && \

0 commit comments

Comments
 (0)