summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-05-13 15:28:21 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-05-18 21:45:51 +0200
commitdca6e52695378e54e6661e92ba0849b6b37cf9cd (patch)
treef566c3e2d0ff9dfed0f868b92b282ac1e4ea04e3 /src
parentc83e8de920cb604fc55a18fe1c5f2c1d872f6f74 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/main/docker/runtime/Dockerfile2
1 files changed, 1 insertions, 1 deletions
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 \