From 3e9b6036b548b53990d7af9388ef347ec26192e2 Mon Sep 17 00:00:00 2001 From: Alex Varju Date: Fri, 14 Oct 2022 17:54:46 -0700 Subject: [PATCH] Clean up root-owned cache items --- packages/@aws-cdk/aws-lambda-python/lib/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile b/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile index 28bde8baf87a7..e61f15fcb0fa8 100644 --- a/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile +++ b/packages/@aws-cdk/aws-lambda-python/lib/Dockerfile @@ -31,6 +31,8 @@ RUN \ # 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 + pip install pipenv==2022.4.8 poetry && \ +# Ensure no temporary files remain in the caches + rm -rf /tmp/pip-cache/* /tmp/poetry-cache/* CMD [ "python" ]