Take a look this example: https://github.com/sdt/docker-raspberry-pi-cross-compiler/tree/master/example/axel With the idea to improve this build: https://ci.adoptopenjdk.net/job/openjdk10_build_arm32_linux/