Don't Put Fat Jars in Container Images. It's better to split the dependencies into a different layer. The last layer will only contain your compile source code. Any new Image will only differ in this layer unless you update the dependencies.
See this blog post for more details.
More documentation: