dockerfile source不生效问题
在Dockerfile文件使用ENV命令声明成全局环境变量
FROM kubesphere/builder-maven:v3.2.0
MAINTAINER zhaozhiyong "715740383@qq.com"
WORKDIR /jdk
ADD jdk1.8.0_191.tar.gz /jdk/
ENV JAVA_HOME=/jdk/jdk1.8.0_191
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH=$JAVA_HOME/bin:$PATH
CMD ["java","-version"]