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

Reduce docker image size #1140

Merged
merged 1 commit into from Sep 25, 2019
Merged

Conversation

azdagron
Copy link
Member

  • build go binaries with "-w -s" ldflags to strip DWARF info.
  • used --no-cache with apk on the base image to prevent apk cruft.
  • spire-server image went from 80.8MB to 61MB
  • spire-agent image went from 45.4MB to 35.2MB
  • k8s-workload-registrar image went from 27.5MB to 22MB

- build go binaries with "-w -s" ldflags to strip DWARF info.
- used `--no-cache` with apk on the base image to prevent apk cruft.
- spire-server image went from 80.8MB to 61MB
- spire-agent image went from 45.4MB to 35.2MB
- k8s-workload-registrar image went from 27.5MB to 22MB

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

🥇

@azdagron azdagron merged commit 4ae691a into spiffe:master Sep 25, 2019
@azdagron azdagron deleted the reduce-docker-image-size branch September 25, 2019 20:29
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

2 participants