You should look into modularity of the JVM and produce a custom Java runtime for your app (using jlink).
This will cut your runtime size by at least 50% in size.
This is exactly what I am doing:
Step 4/7 : RUN ["/opt/jdk/jdk-13/bin/jlink", "--compress=2", "--module-path", "/opt/jdk/jdk-13/jmods/", "--add-modules", "java.base", "--output", "/jlinked"]
Hhmmm.... Thanks. I missed that. But unclear how the image is still at 41mb.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You should look into modularity of the JVM and produce a custom Java runtime for your app (using jlink).
This will cut your runtime size by at least 50% in size.
This is exactly what I am doing:
Hhmmm.... Thanks. I missed that. But unclear how the image is still at 41mb.