Explorar o código

update 优化 为需要字体的服务 补充字体

疯狂的狮子Li %!s(int64=2) %!d(string=hai) anos
pai
achega
dba4293fe2
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  1. 4 0
      ruoyi-auth/Dockerfile
  2. 4 0
      ruoyi-modules/ruoyi-workflow/Dockerfile

+ 4 - 0
ruoyi-auth/Dockerfile

@@ -11,6 +11,10 @@ RUN mkdir -p /ruoyi/auth/logs  \
 
 WORKDIR /ruoyi/auth
 
+# 补全alpine镜像缺失字体问题
+RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
+RUN apk add fontconfig && apk add --update ttf-dejavu && fc-cache --force
+
 ENV SERVER_PORT=9210 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
 
 EXPOSE ${SERVER_PORT}

+ 4 - 0
ruoyi-modules/ruoyi-workflow/Dockerfile

@@ -11,6 +11,10 @@ RUN mkdir -p /ruoyi/workflow/logs \
 
 WORKDIR /ruoyi/workflow
 
+# 补全alpine镜像缺失字体问题
+RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
+RUN apk add fontconfig && apk add --update ttf-dejavu && fc-cache --force
+
 ENV SERVER_PORT=9205 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
 
 EXPOSE ${SERVER_PORT}