add jdk25
This commit is contained in:
@@ -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 \
|
||||
# 清理
|
||||
|
||||
Reference in New Issue
Block a user