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