From a8413057e458e0a6e93ec32239737a1664e067f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=86=E9=91=AB?= Date: Sat, 25 Oct 2025 19:40:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86authserver=E4=B8=AD=E7=9A=84npm?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=9B=BD=E5=86=85=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/KonSoft.AuthServer/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/KonSoft.AuthServer/Dockerfile b/applications/KonSoft.AuthServer/Dockerfile index 69b00ce..98c246b 100644 --- a/applications/KonSoft.AuthServer/Dockerfile +++ b/applications/KonSoft.AuthServer/Dockerfile @@ -16,7 +16,6 @@ RUN echo "deb https://mirrors.huaweicloud.com/debian/ bookworm main contrib non- curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ apt-get install -yq nodejs && \ npm install -g yarn@${YARN_VERSION} && \ - yarn config set registry https://mirrors.huaweicloud.com/repository/npm/ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* ARG BUILD_CONFIGURATION=Release @@ -34,6 +33,9 @@ RUN dotnet nuget locals all --clear RUN dotnet nuget add source https://mirrors.huaweicloud.com/repository/nuget/v3/index.json -n HuaweiCloud RUN dotnet tool install -g Volo.Abp.Cli --version 8.3.4 ENV PATH="$PATH:/root/.dotnet/tools" +RUN npm config set registry https://repo.huaweicloud.com/repository/npm/ +RUN yarn config set registry https://repo.huaweicloud.com/repository/npm/ +RUN pip3 config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple RUN abp install-libs RUN dotnet build "./KonSoft.AuthServer.csproj" -c $BUILD_CONFIGURATION -o /app/build