Gradle build in Docker Container

Can you guide me on how to dockerize gradle build using Dockerfile. & push the generate jar artifacts to artifactory.