jdk镜像制作

 

FROM centos:centos7.5.1804
ADD jdk-17_linux-x64_bin.tar.gz /usr/local

ENV JAVA_HOME /usr/local/jdk-17.0.2
ENV JRE_HOME /usr/local/jdk-17.0.2/jre
ENV PATH $JAVA_HOME/bin:$PATH

 

posted @ 2022-03-10 10:49  whitesky-root  阅读(60)  评论(0编辑  收藏  举报