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
posted @ 2020-06-02 10:05  博客萨斯州  阅读(428)  评论(0编辑  收藏  举报