fix: 移除Dockerfile中的npm和yarn注册表设置,并添加.yarnrc文件以配置注册表
This commit is contained in:
1
applications/KonSoft.AuthServer/.yarnrc
Normal file
1
applications/KonSoft.AuthServer/.yarnrc
Normal file
@ -0,0 +1 @@
|
||||
registry "https://registry.npmmirror.com"
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user