You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/packaging/container-images/dockerfiles.adoc
+1-24Lines changed: 1 addition & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,33 +54,10 @@ Additionally, the layout created by the `jarmode` is AOT cache (and CDS) friendl
NOTE: If you're using Java < 24, AOT cache is not available.
61
-
You have to use CDS instead.
62
-
63
-
If you want to additionally enable the xref:reference:packaging/aot-cache.adoc#packaging.aot-cache.aot-cache[AOT cache], you can use this `Dockerfile`:
64
-
[source,dockerfile]
65
-
----
66
-
include::reference:partial$dockerfile[]
67
-
# Execute the AOT cache training run
68
-
RUN java -XX:AOTCacheOutput=app.aot -Dspring.context.exit=onRefresh -jar application.jar
69
-
# Start the application jar with AOT cache enabled - this is not the uber jar used by the builder
70
-
# This jar only contains application code and references to the extracted jar files
71
-
# This layout is efficient to start up and AOT cache friendly
If you are using Java 25 or above, and want to additionally enable the xref:reference:packaging/class-data-sharing.adoc#packaging.class-data-sharing.aot-cache[AOT cache], you can use this `Dockerfile`:
60
+
If you are using Java 25 or above, and want to additionally enable the xref:reference:packaging/aot-cache.adoc#packaging.aot-cache.aot-cache[AOT cache], you can use this `Dockerfile`:
0 commit comments