docker-slim is the wrong solution for container optimization. You can't just have a program rm -rf files that it didn't think were in use. What if you missed a code path?
https://twitter.com/ariadneconill/status/1506482425458798593
https://twitter.com/ariadneconill/status/1506482425458798593
https://twitter.com/ariadneconill/status/1506483943352250371
Sorry – I forgot that the Twitter UI doesn't always lend itself to proper threading.
If you're running a website and the removed dependency is related to a feature that is uncommon enough that isn't covered by your automated tests, maybe .1% of your users experience a broken page.
If you're running critical infrastructure and the removed dependency has to do with leap-second handling, maybe eight months from now, everything crashes and you lose millions of dollars.