3
0
linhui.li 1 сар өмнө
parent
commit
bc7380830e

+ 1 - 1
sharedLibs/stages.k8s.groovy

@@ -99,7 +99,7 @@ def generateDockerfile(Object SERVICE, String pathOfDockerfile='projdir') {
     def module = SERVICE.module == null ? '' : (SERVICE.module[-1] == '/' ? SERVICE.module : SERVICE.module + '/')
     echo "-----> Generating Dockerfile: ${pathOfDockerfile}/Dockerfile ..."
     sh """cat > ${pathOfDockerfile}/Dockerfile<<EOF
-FROM openjdk:17-alpine as final
+FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17-jdk-alpine as final
 ADD ${module}target/${SERVICE.jar} /app/target/${SERVICE.jar}
 EOF
 """