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?
Dockerizing a shell script?
Environments like Kubernetes only run containers so you would deploy any shell script with containers as well.
But you’d use the shell script as part of something else, surely? As in, it’s not a container, it’s something deployed as part of or copied into a container?
17+ MB for a shell script.
Then asks:
Could we reduce the size further
No. No certainly not. I would see no way to make a 500 lines text file use less than 17 MB of space.