consider 2 things: a) if you will continually be updating the app, then every iteration involves creating a new docker image, uploading to a registry and replacing the running container. Can be a lot more work than simply replacing a JAR file and b) it's quite difficult to keep secrets (like db passwords) out of the docker image because the image must pass them on when starting the JAR. Now it's in your registry. Depending on who has access, this may not be secure.
I dockerized everything EXCEPT the actual Java app, for these reasons. Just things to think about, may or may not work for you.