Skip to content

Commit

Permalink
Merge pull request #44 from awslabs/rf/force-pydantic-1
Browse files Browse the repository at this point in the history
fix(python): force pydantic 1.x major version
  • Loading branch information
leandrodamascena authored Apr 12, 2023
2 parents 5120d80 + 3a470a8 commit 135fb90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layer/Python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 135fb90

Please sign in to comment.