Skip to content

Commit

Permalink
使用 Eclipse Temurin 镜像替代 AdoptOpenJDK 镜像 (halo-dev#2120)
Browse files Browse the repository at this point in the history
AdoptOpenJDK 项目已迁移至 Eclipse Adoptium,JDK 更名为「Eclipse Temurin」。
https://blog.adoptium.net/2021/08/adoptium-celebrates-first-release/
  • Loading branch information
cherinyy authored May 27, 2022
1 parent 3dda1a9 commit 352d9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
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
RUN java -Djarmode=layertools -jar application.jar extract

################################

FROM adoptopenjdk:11-jre-hotspot
FROM eclipse-temurin:11-jre
MAINTAINER johnniang <[email protected]>
WORKDIR application
COPY --from=builder application/dependencies/ ./
Expand All @@ -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

0 comments on commit 352d9d4

Please sign in to comment.