From 3150e504b7c24dee05cab387769a90b44a09309f Mon Sep 17 00:00:00 2001 From: 86156 <823267011@qq.com> Date: Tue, 30 Sep 2025 19:31:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/Dockerfile b/ruoyi-admin/Dockerfile index 242a846..795f295 100644 --- a/ruoyi-admin/Dockerfile +++ b/ruoyi-admin/Dockerfile @@ -27,11 +27,15 @@ RUN mvn clean package -DskipTests -Denforcer.skip=true -pl ruoyi-admin -am # 运行阶段 FROM eclipse-temurin:17-jre-alpine -# 安装必要的工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone && \ - apk del tzdata +# 安装必要的工具和JavaCV依赖 +RUN apk add --no-cache \ + curl \ + tzdata \ + libstdc++ \ + libgomp \ + && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ + && echo "Asia/Shanghai" > /etc/timezone \ + && apk del tzdata # 设置工作目录 WORKDIR /app