docker-slim is incredibly dangerous and should never be used for a production app.
But I agree, this is just bandaid for lazy bois. Better use Bazel etc. for distroless builds
If you forget a critical code path when you build using Docker-Slim, and a resource file is not used, that resource will be stripped. The feature which depends on it will be broken in production.
If Docker-Slim is working for you in production apps, you are either getting lucky or your app is trivial enough to lack unseen code paths.
Like, maybe some log forwarder utility that only gets called for "CRIT" messages that didn't happen to get triggered by testing.