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

Remove arch flag and add ldflag to remove dwarf and symbol table #187

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

afritzler
Copy link
Member

Proposed Changes

  • Currently are are building our Docker images hard against amd64 even though we have a multi arch docker build action. We should rely on the build environments GORACH settings here.
  • Add ldflags to remove DWARF symbol and debug table from the binary to reduce the file size (https://pkg.go.dev/cmd/link).

Dockerfile Outdated Show resolved Hide resolved
@adracus adracus merged commit 0689adb into main Nov 23, 2021
@adracus adracus deleted the docker_size branch November 23, 2021 10:46
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