Container image: Trim of unused modules.
The list of modules was obtained by:
jdeps --print-module-deps \
--multi-release 18 \
--class-path (find target/quarkus-app -name \*.jar | paste -sd:) \
--ignore-missing-deps \
target/quarkus-app/app/*.jar
Change-Id: Ie63ff85c459e748270b694b657e1ffbfd7234e4c
diff --git a/src/main/docker/runtime/Dockerfile b/src/main/docker/runtime/Dockerfile
index 80d5b05..ad41771 100644
--- a/src/main/docker/runtime/Dockerfile
+++ b/src/main/docker/runtime/Dockerfile
@@ -11,7 +11,7 @@
RUN microdnf --assumeyes --nodocs install binutils
RUN /jdk/*/bin/jlink \
-J-XX:MaxRAMPercentage=75 \
- --add-modules ALL-MODULE-PATH \
+ --add-modules java.base,java.instrument,java.naming,java.rmi,java.scripting,java.security.jgss,java.security.sasl,java.sql,jdk.compiler,jdk.jconsole,jdk.unsupported \
--compress=1 \
--no-man-pages \
--strip-debug \