We're trying to run our java 8 application inside alpine_java-17 container. Everything compiles and works fine except one thing.
One functionality regarding excel doesn't work. In the logs I found:
Could not initialize class sun.awt.X11FontManager
Previously when we ran our app inside java8 container we didn't have this issue since we had command to install required packages:
RUN apt-get install -y fontconfig libfreetype6
But now since we have alpine 17 we changed the above command to
RUN apk add fontconfig
RUN apk add freetype
I tried to install libfreetype6 using RUN apk add libfreetype6 but docker returned me an error:
ERROR: unable to select packages:
libfreetype6 (no such package):
required by: world[libfreetype6]
Error response from daemon: The command '/bin/sh -c apk add libfreetype6' returned a non-zero code: 1
It seems like freetype is not the same as libfreetype6, but libfreetype6 is missing.
Can someone please help to understand the problem? Thanks in advance!