From dca6e52695378e54e6661e92ba0849b6b37cf9cd Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 13 May 2022 15:28:21 +0200 Subject: 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 --- src/main/docker/runtime/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/docker/runtime') 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 @@ ADD jdk-dist/latest.tar.gz /jdk 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 \ -- cgit v1.2.3