From dddb89fd43783559f1c50b1612a58b9f948860cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E4=BA=8C=E8=BF=9C?= Date: Tue, 7 Apr 2026 16:54:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E8=AE=BE=E7=BD=AEmaven=20aliyun=20?= =?UTF-8?q?=E5=8A=A0=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/server/Dockerfile b/server/Dockerfile index 1d9a4b08..0b7ad3b6 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -13,6 +13,29 @@ COPY skillhub-notification/pom.xml skillhub-notification/ COPY skillhub-app/pom.xml skillhub-app/ COPY mvnw . COPY .mvn .mvn + +# 配置阿里云 Maven 镜像加速 +RUN mkdir -p /root/.m2 && \ + echo '\ +\ + \ + \ + aliyun\ + central\ + Alibaba Cloud Maven Mirror\ + https://maven.aliyun.com/repository/central\ + \ + \ + aliyun-public\ + *\ + Alibaba Cloud Public Maven Mirror\ + https://maven.aliyun.com/repository/public\ + \ + \ +' > /root/.m2/settings.xml + RUN ./mvnw dependency:go-offline -B COPY . .