diff --git a/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile b/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile index 8cc21cb2bab92..e1874a8f7a1e2 100644 --- a/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile +++ b/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile @@ -14,6 +14,6 @@ RUN pip install --upgrade pip # poetry>=1.2 cannot use MD5 hashes for installing packages, which is the only hashes # AWS Code Artifact supports. # https://github.com/python-poetry/poetry/issues/6301 -RUN pip install pipenv==2022.4.8 poetry<1.2 +RUN pip install pipenv==2022.4.8 "poetry<1.2" CMD [ "python" ]