Skip to content

Commit

Permalink
Don't search filesystem mounts in docker build step (#10131) (#10194)
Browse files Browse the repository at this point in the history
Limit find cmd to /usr/ where __pycache__ files are located

Co-authored-by: Mateusz Mojsiejuk <m@fishface.se>
  • Loading branch information
yankay and tomodachi committed Jun 6, 2023
1 parent 200e0d5 commit 2cf23e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,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 {} \;

0 comments on commit 2cf23e3

Please sign in to comment.