Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove google-cloud-sdk archive from python image
Currently the tar archive for the google-cloud-sdk is not deleted after it is unpacked. This bloats the resulting docker image with ~189 MB of unused data. ``` (base) root@8eda5cb5bf03:/# ls -lh total 272M -rw-r--r-- 1 root root 83M Nov 22 2023 Mambaforge.sh lrwxrwxrwx 1 root root 7 Oct 3 2023 bin -> usr/bin drwxr-xr-x 2 root root 4.0K Apr 15 2020 boot drwxr-xr-x 5 root root 360 Jun 27 16:42 dev drwxr-xr-x 1 root root 4.0K Jun 27 16:42 etc drwxr-xr-x 15 root root 4.0K Jun 27 16:49 google-auth-library-python drwxr-xr-x 1 root root 4.0K Nov 22 2023 google-cloud-sdk -rw-r--r-- 1 root root 189M Feb 28 2023 google-cloud-sdk-420.0.0-linux-x86_64.tar.gz . . . ``` Removing the tar.gz file after unpacking it will slim the resulting image by ~189 MB.
- Loading branch information