Browse Source
Don't search filesystem mounts in docker build step (#10131)
Limit find cmd to /usr/ where __pycache__ files are located
pull/10167/head
Mateusz Mojsiejuk
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Dockerfile
|
@ -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 \ |
|
|
&& 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 \ |
|
|
&& chmod a+x /usr/local/bin/kubectl \ |
|
|
&& rm -rf /var/lib/apt/lists/* /var/log/* \ |
|
|
&& 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 {} \; |