My Spring Boot application runs in Docker and is build by gradlew bootBuildImage
.
When run in Docker container application cannot load fonts
Caused by: java.lang.NullPointerException
at java.desktop/sun.awt.FontConfiguration.getVersion(Unknown Source)
Root cause seems to be missing fontconfig
and ttf-dejavu
packages.
When using Dockerfile
, one can easily install those packages using apk add
, yum
, apt-get
, etc
But https://github.com/paketo-buildpacks/spring-boot and https://github.com/paketo-buildpacks/bellsoft-liberica do not have option to install additional packages.
Is there buildpack (or configuration option) that will build Docker images with font support?