使用 Eclipse Temurin 镜像替代 AdoptOpenJDK 镜像 (#2120)

AdoptOpenJDK 项目已迁移至 Eclipse Adoptium,JDK 更名为「Eclipse Temurin」。
https://blog.adoptium.net/2021/08/adoptium-celebrates-first-release/
pull/2125/head
清靈語 2022-05-27 17:50:57 +08:00 committed by GitHub
parent 3dda1a9f6d
commit 352d9d4e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM adoptopenjdk:11-jre-hotspot as builder
FROM eclipse-temurin:11-jre as builder
WORKDIR application
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} application.jar
@ -6,7 +6,7 @@ RUN java -Djarmode=layertools -jar application.jar extract
################################
FROM adoptopenjdk:11-jre-hotspot
FROM eclipse-temurin:11-jre
MAINTAINER johnniang <johnniang@fastmail.com>
WORKDIR application
COPY --from=builder application/dependencies/ ./
@ -23,4 +23,4 @@ ENV JVM_XMS="256m" \
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone
ENTRYPOINT java -Xms${JVM_XMS} -Xmx${JVM_XMX} ${JVM_OPTS} -Djava.security.egd=file:/dev/./urandom org.springframework.boot.loader.JarLauncher
ENTRYPOINT java -Xms${JVM_XMS} -Xmx${JVM_XMX} ${JVM_OPTS} -Djava.security.egd=file:/dev/./urandom org.springframework.boot.loader.JarLauncher