docker 添加JDK
FROM centos:7.7.1908
ADD jdk-9.0.4_linux-x64_bin.tar.gz /usr/local/
ENV JAVA_HOME /usr/local/jdk-9.0.4
ENV JRE_HOME /usr/local/jdk-9.0.4/jre
ENV CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
ENV PATH $JAVA_HOME/bin:$PATH
FROM centos:7.7.1908
ADD jdk-9.0.4_linux-x64_bin.tar.gz /usr/local/
ENV JAVA_HOME /usr/local/jdk-9.0.4
ENV JRE_HOME /usr/local/jdk-9.0.4/jre
ENV CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
ENV PATH $JAVA_HOME/bin:$PATH