add jdk25

This commit is contained in:
Timi
2026-07-31 15:48:05 +08:00
parent 3bd6fa9c97
commit b3a696a173
2 changed files with 12 additions and 3 deletions
+4 -2
View File
@@ -4,7 +4,7 @@
FROM debian:latest
LABEL maintainer="www.imyeyu.com"
LABEL description="Java Runtime with JRE 8/21 for running Java services"
LABEL description="Java Runtime with JRE 8/21/25 for running Java services"
# 环境变量
ENV LANG=C.UTF-8 \
@@ -13,7 +13,8 @@ ENV LANG=C.UTF-8 \
# JRE 路径
ENV JAVA8_HOME=/usr/lib/jvm/temurin-8-jre-amd64 \
JAVA21_HOME=/usr/lib/jvm/temurin-21-jre-amd64
JAVA21_HOME=/usr/lib/jvm/temurin-21-jre-amd64 \
JAVA25_HOME=/usr/lib/jvm/temurin-25-jre-amd64
# 默认使用 JRE 21
ENV JAVA_HOME=${JAVA21_HOME} \
@@ -57,6 +58,7 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \
temurin-8-jre \
temurin-21-jre \
temurin-25-jre \
# 配置时区
&& ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone \
# 清理