Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image size reduction #3319

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ccosby
Copy link

@ccosby ccosby commented Jun 6, 2024

  • Install ppa:git-core/ppa in build stage, copy apt lists and gpg keys to main stage
  • Copy docker client and plugins from upstream docker:cli image
  • Perform more thorough cleanup of apt lists and cache

This reduces the overall on-disk image size by ~348MB (amd64) and the download size by ~146MB. For those of us who use runners in containers/k8s, the network traffic is reduced by a considerable 29%.

@ccosby ccosby marked this pull request as ready for review June 6, 2024 19:59
@ccosby ccosby requested a review from a team as a code owner June 6, 2024 19:59
@ccosby ccosby changed the title Image size reduction Docker image size reduction Jun 7, 2024
@ccosby ccosby force-pushed the image-size-reduction branch 4 times, most recently from 02675f9 to b886175 Compare July 18, 2024 21:57
@ccosby ccosby force-pushed the image-size-reduction branch 2 times, most recently from c02f5fd to e869067 Compare August 16, 2024 20:23
@ccosby ccosby force-pushed the image-size-reduction branch 7 times, most recently from 0f7b630 to 087ba15 Compare September 11, 2024 16:05
images/Dockerfile Outdated Show resolved Hide resolved
This reduces the overall runtime image size by ~301MB. (1.24GB to 939MB).
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