Suggestion for building Docker image using Gradle

I’m interested in suggestions for how to build a Docker image from Gradle. I’d like to have a standard dockerfile and use a Gradle task to build the docker image. Can anyone suggest a suitable Gradle plug-in or provide examples of doing something similar?

Our application is written in Java if that’s relevant.

Thanks in advance.