Skip to content

Commit 810f710

Browse files
committed
🔥 Remove Cloud SDK backup files - reduce image size
1 parent 2bb2c68 commit 810f710

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎Dockerfile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ RUN wget -q "https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz"
2020
gcloud components install alpha && \
2121
gcloud components install gke-gcloud-auth-plugin && \
2222
gcloud components update && \
23-
rm google-cloud-sdk.tar.gz
23+
rm -rf $(find /opt/google-cloud-sdk/ -regex ".*/__pycache__") && \
24+
rm -rf /opt/google-cloud-sdk/.install/.backup && \
25+
google-cloud-sdk.tar.gz
2426

2527
RUN wget -q https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz -O helm.tar.gz && \
2628
tar xf helm.tar.gz && \

0 commit comments

Comments
 (0)