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 3 commits into
base: main
Choose a base branch
from

Conversation

ccosby
Copy link

@ccosby ccosby commented Jun 6, 2024

  • Revert BUILDX_VERSION to 0.13.1 (0.13.2 does not exist upstream)
  • Extract Docker in build stage, copy to main stage (keeps /home/runner/docker out of main image)
  • Install ppa:git-core/ppa in build stage, copy apt lists and gpg keys to main stage (keeps very many packages out of main image)

@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
Copy link
Author

ccosby commented Jun 6, 2024

This reduces the overall on-disk image size by ~301MB.
Sizes for x86_64:
v2.317.0 = 1.24GB
this = 939MB

@ccosby ccosby changed the title Image size reduction Docker image size reduction Jun 7, 2024
Chris Cosby added 3 commits June 20, 2024 11:39
…s#3277)"

This partially reverts commit 00888c1.

DOCKER_VERSION=25.0.5 is fine but BUILDX_VERSION=0.13.2 doesn't exist
upstream.
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.

None yet

1 participant