It’s always possible to go too far one way or the other.
There’s a tendency to always build from base images and generate enormous images. I appreciate this as the antidote. I imagine there may be times when this is relevant. However this exact pattern loses you the benefit of shipping your application code (in this case the jars) with its binary dependencies such that you know exactly how they interact. Packing jars + jvm together is basically the exact pattern that docker is intended for.