Skip to content

Conversation

@crazy-max
Copy link
Member

@crazy-max crazy-max commented Jun 24, 2025

@crazy-max crazy-max requested review from thaJeztah and vvoland June 24, 2025 12:16
@crazy-max crazy-max marked this pull request as ready for review June 24, 2025 12:16
@thaJeztah
Copy link
Member

Could you keep the commit message from the original PR? docker/docker-ce-packaging@db7bac9

This disables DWARF generation, which dramatically decreases the size of the binary.

Notably, this does *not* include `-s` which disables the symbol table, as doing so would *also* make it so that `govulncheck` cannot be run on the resulting binary with meaningful results.

Before is ~90M and after is ~72M.

If we add `-s` as well, that ~72M drops to ~63M, but we also lose `govulncheck` so again, IMO, that's not worth doing.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 15fbe4e into docker:main Jun 24, 2025
43 checks passed
@crazy-max crazy-max deleted the buildx-w-ldflags branch June 24, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants