fix: 将authserver中的npm改为国内源

This commit is contained in:
2025-10-25 19:40:39 +08:00
parent a234d3255e
commit a8413057e4

View File

@ -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