k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Reduce Dockerfile layers and optimize build

Open YoussefBayouli opened this issue 1 year ago • 1 comments

Combined multiple apk add steps in both stages to reduce the number of layers.

Removed the apk del --purge deps since curl and vim are still required, so no need to remove them.

Removed redundant apk --update since --no-cache already ensures that the latest package versions are installed without caching.

YoussefBayouli avatar Oct 12 '24 09:10 YoussefBayouli

@YoussefBayouli Thank you for this update! Unless I am missing it, the resulting image size is now ~135mb vs ~99.8mb ;(

derailed avatar Oct 12 '24 15:10 derailed