fix: 将authserver中的npm改为国内源
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user