51工具盒子

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

kubesphere node gardle7.4,jdk17镜像

kubesphere node gardle7.4,jdk17镜像

Dockerfile

FROM centos:7
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"]

改:

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"]
赞(7)
未经允许不得转载:工具盒子 » kubesphere node gardle7.4,jdk17镜像