FROM debian
ADD jdk-15.0.2_linux-x64_bin.tar.gz /opt
ADD apache-maven-3.6.3-bin.tar.gz /opt/
ENV JAVA_HOME=/opt/jdk-15.0.2
ENV PATH=$JAVA_HOME/bin:$PATH
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV MAVEN_HOME=/opt/apache-maven-3.6.3
ENV PATH=${PATH}:${MAVEN_HOME}/bin
RUN mkdir /root/.m2
COPY settings.xml /root/.m2
制作jdk 镜像
最新推荐文章于 2024-03-06 22:14:29 发布