Skip to content

build(docker): optimize Dockerfile with smaller image and cleanup #3491

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leonamvasquez
Copy link

This PR improves the Dockerfile used to build the K9s binary:

  • Removes unnecessary dependencies such as vim
  • Adds OCI-compliant labels for image metadata
  • Disables CGO and applies -trimpath for reproducible builds
  • Cleans up build dependencies to reduce final image size
  • Replaces redundant platform flag based on Docker BuildKit warning

These improvements make the image more production-ready, smaller, and secure.

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.

1 participant