51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

docker 构建镜像-maven-gradle

#FROM centos:7
FROM kubespheredev/builder-base:v3.1.0
MAINTAINER zhaozhiyong  "715740383@qq.com"
WORKDIR /jdk
ADD jdk-17_linux-x64_bin.tar.gz /jdk/
ADD gradle-7.4-bin.tar.gz  /gradle/

ENV JAVA_HOME=/jdk/jdk-17.0.9
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV GRADLE_HOME=/gradle/gradle-7.4
ENV PATH=$JAVA_HOME/bin:$PATH:$GRADLE_HOME/bin
CMD ["java","-version"]
#CMD ["gradle","-version"]
赞(6)
未经允许不得转载:工具盒子 » docker 构建镜像-maven-gradle