Skip to content

Commit 51496ab

Browse files
committed
Bump container image to Java 25
Updates the JDK used to build the container image to Java 25, and enables the compact object headers feature (https://openjdk.org/jeps/519) for reduced CPU and memory overhead. We will continue to build and test the application itself against Java 21 for the time being, and it will continue to be executable on Java 21 as well. This change purely affects the default image we distribute. Signed-off-by: nscuro <[email protected]>
1 parent 48baca9 commit 51496ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apiserver/src/main/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ARG DATA_DIR=/data/
2424
ARG UID=1000
2525
ARG GID=1000
2626

27-
FROM eclipse-temurin:21.0.8_9-jdk-alpine@sha256:df8ce8302ed2ed1690ef490c633981b07e752b373b5fdf796960fb2eb0d640ea AS jre-build
27+
FROM eclipse-temurin:25_36-jdk-alpine@sha256:f4c0b771cfed29902e1dd2e5c183b9feca633c7686fb85e278a0486b03d27369 AS jre-build
2828

2929
WORKDIR /work
3030

@@ -46,7 +46,7 @@ ENV TZ=Etc/UTC \
4646
# Dependency-Track's default logging level
4747
LOGGING_LEVEL=INFO \
4848
# JVM Options that are passed at runtime by default
49-
JAVA_OPTIONS="-XX:+UseG1GC -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=250 -XX:MaxRAMPercentage=80.0" \
49+
JAVA_OPTIONS="-XX:+UseG1GC -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:MaxGCPauseMillis=250 -XX:MaxRAMPercentage=80.0" \
5050
# JVM Options that can be passed at runtime, while maintaining also those set in JAVA_OPTIONS.
5151
# e.g. EXTRA_JAVA_OPTIONS="-Dlogback.configurationFile=logback-json.xml"
5252
EXTRA_JAVA_OPTIONS="" \

0 commit comments

Comments
 (0)