Closed hzfq closed 8 months ago
@hzfq try adding an install for libfreetype6 as part of your docker file
thx, I tried the above method, but the problem still exists. End, I resolved the problem through adding libgcc as part of Dockerfile.
In addition, I recommend adding freetype and libgcc to the dockerfile because these two libraries are used frequently.
Finally, in the process of solving the above problem, I discovered a new problem.
# problem position:
# https://github.com/adoptium/containers/blob/main/8/jdk/alpine/Dockerfile
rm -f /tmp/openjdk.tar.gz ${JAVA_HOME}/lib/src.zip;
Here, the correct absolute path of src.zip is ${JAVA_HOME}/src.zip
Question
My application is running with spring-boot:2.3.10.RELEASE and eclipse-temurin:8u392-b08-jdk-alpine, the core code following,
my Dockerfile following,
my docker build command is
my docker run command is
then the application throwing exception
How should I solve this problem?
Context
Java version: eclipse-temurin:8u392-b08-jdk-alpine
Your operating system and platform:
centos: CentOS Linux release 7.4.1708 (Core) docker: 24.0.7