From 3b8a2fd2fb910133ef4e5dbc341df9e2d31f2a51 Mon Sep 17 00:00:00 2001 From: Md Anindya Prodhan Date: Fri, 14 Jun 2024 20:21:11 +0000 Subject: [PATCH] use rm to remove __pycache__ instead of -delete to support deleting non-empty directories. --- stable/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/Dockerfile b/stable/Dockerfile index 000debe1..45f88534 100644 --- a/stable/Dockerfile +++ b/stable/Dockerfile @@ -34,5 +34,5 @@ RUN gcloud --version && \ gcloud config set component_manager/disable_update_check true && \ rm -rf /root/.cache/pip/ && \ find / -name '*.pyc' -delete && \ - find / -name '*__pycache__*' -delete + find / -name '*__pycache__*' -exec rm -r {} \+ VOLUME ["/root/.config"]