From 6e735544f271b5f5b6c262bf16febd6b8c9066b5 Mon Sep 17 00:00:00 2001 From: Mateusz Mojsiejuk Date: Wed, 24 May 2023 21:11:42 +0200 Subject: [PATCH] Don't search filesystem mounts in docker build step Limit find cmd to /usr/ where __pycache__ files are located --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 098529463e9..2612fd6aed6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:jammy-20230308 # Some tools like yamllint need this # Pip needs this as well at the moment to install ansible -# (and potentially other packages) +# (and potentially other packages) # See: https://github.com/pypa/pip/issues/10219 ENV LANG=C.UTF-8 \ DEBIAN_FRONTEND=noninteractive \ @@ -38,4 +38,4 @@ RUN apt update -q \ && echo $(curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl.sha256) /usr/local/bin/kubectl | sha256sum --check \ && chmod a+x /usr/local/bin/kubectl \ && rm -rf /var/lib/apt/lists/* /var/log/* \ - && find / -type d -name '*__pycache__' -prune -exec rm -rf {} \; + && find /usr -type d -name '*__pycache__' -prune -exec rm -rf {} \;