diff --git a/packages/@aws-cdk/aws-lambda-python-alpha/lib/Dockerfile b/packages/@aws-cdk/aws-lambda-python-alpha/lib/Dockerfile index 334b2a80ac4d9..3152f0f30cf14 100644 --- a/packages/@aws-cdk/aws-lambda-python-alpha/lib/Dockerfile +++ b/packages/@aws-cdk/aws-lambda-python-alpha/lib/Dockerfile @@ -6,6 +6,8 @@ FROM $IMAGE ARG PIP_INDEX_URL ARG PIP_EXTRA_INDEX_URL ARG HTTPS_PROXY +# pipenv 2022.4.8 is the last version with Python 3.6 support +ARG PIPENV_VERSION=2022.4.8 ARG POETRY_VERSION=1.5.1 # Add virtualenv path @@ -31,8 +33,8 @@ RUN \ mkdir /tmp/poetry-cache && \ # Ensure all users can write to poetry cache chmod -R 777 /tmp/poetry-cache && \ -# pipenv 2022.4.8 is the last version with Python 3.6 support - pip install pipenv==2022.4.8 poetry==$POETRY_VERSION && \ +# Install pipenv and poetry + pip install pipenv==$PIPENV_VERSION poetry==$POETRY_VERSION && \ # Ensure no temporary files remain in the caches rm -rf /tmp/pip-cache/* /tmp/poetry-cache/*