it require jdk8 but you have jdk 11 so download jdk 8 first
safest way to run the build using the gradlew/gradlew.bat (gradle wrapper) which will download the same version of gradle used to build this project (in case there other incompatibility issue related to gradle version)
i have no experiance with docker so not sure how you run this command
./gradlew build run this from the project directory in linux/unix gradlew.bat build using windows