Skip to content

Slim docker image by ensuring we don't leave unused cache file in#1532

Merged
rosbo merged 1 commit into
mainfrom
slim-docker-image
Jan 30, 2026
Merged

Slim docker image by ensuring we don't leave unused cache file in#1532
rosbo merged 1 commit into
mainfrom
slim-docker-image

Conversation

@rosbo
Copy link
Copy Markdown
Contributor

@rosbo rosbo commented Jan 30, 2026

Docker layers.

We were not clearing the uv cache adding extra bloat to each our our docker layer. Added more background on this here: https://b.corp.google.com/issues/277208559#comment12

Reasoning why I preferred to use --no-cache rather than the clean-layer.sh script: https://b.corp.google.com/issues/277208559#comment13

Inspired by #1523.

http://b/277208559

Docker layers.

We were not clearing the `uv` cache adding extra bloat to each our our
docker layer. Added more background on this here: https://b.corp.google.com/issues/277208559#comment12

Reasoning why I preferred to use `--no-cache` rather than the
`clean-layer.sh` script: https://b.corp.google.com/issues/277208559#comment13

http://b/277208559
@rosbo
Copy link
Copy Markdown
Contributor Author

rosbo commented Jan 30, 2026

FYI: The savings ended up being 600 mb (46.9GB - 46.3GB). Moving to the Colab CPU image for our CPU image should knock off ~10-15Gb.

@rosbo rosbo merged commit 7b88626 into main Jan 30, 2026
4 checks passed
@rosbo rosbo deleted the slim-docker-image branch January 30, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants