chain run commande to reduce image size (from 1.175 GB to 883.5MB), add JAVA_HOME env