How I reduced the size of my very first published docker image by 40% - A lesson in dockerizing shell scripts

bugsmith@programming.dev to Programming@programming.dev – 69 points –
bhupesh.me
11

You are viewing a single comment

This is cool but it'll be a nightmare to update.

Also, chances are that if you use Alpine the person using your image already has the base layer downloaded, so your image might actually be "bigger" for most people.

Yeah in a PR I would probably reject this for being too clever. Before clicking I expected the image to start at 100mb or more, but it's already under 50, who cares at this point?

Man, "too clever" is a phrase that always throws me for a loop, even though I understand what is meant by it; over the years, as I grow wiser, I learn to be less clever. Still weird to think of it this way though