Build docker images with jdk 8