Directly set JAVA_HOME in image build