we are trying to switch the building of our Docker container to benefit from the OCI images generated by the spring boot gradle plugin.
As of now, we use the classic method: we have our own Dockerfile where all the customizing is done - including installing the necessary packages.
Using the gradle plugin as described here: https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#build-image works quite well and almost everything is functional.
But we rely on JasperReports, and when we try to generate PDF, following error is thrown: java.lang.NullPointerException: Cannot load from short array because "sun.awt.FontConfiguration.head" is null. This is the reason why we included fonts packages in our custom Dockerfile.
I could not find a buildpack to include in order to have fonts support.
How can this be achieved?