fix: 移除Dockerfile中的npm和yarn注册表设置,并添加.yarnrc文件以配置注册表

This commit is contained in:
2025-10-25 23:12:14 +08:00
parent 8d479feaee
commit fdfabd725b
2 changed files with 1 additions and 2 deletions

View File

@ -0,0 +1 @@
registry "https://registry.npmmirror.com"

View File

@ -38,8 +38,6 @@ 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://registry.npmmirror.com
RUN yarn config set registry https://registry.npmmirror.com
RUN abp install-libs
RUN dotnet build "./KonSoft.AuthServer.csproj" -c $BUILD_CONFIGURATION -o /app/build