【发布时间】:2019-12-19 02:14:13
【问题描述】:
我尝试将私有 nuget 源添加(覆盖)到我的构建脚本中,以添加用户/密码 - 并将其排除在我的源代码控制之外。到目前为止我尝试了什么:
-
nuget未被识别为图像内的命令 -
dotnet nuget没有添加其他来源的命令 - 安装nuget不影响
dotnet restore
FROM mcr.microsoft.com/dotnet/core/sdk:2.2
RUN apt-get update && apt-get install -y nuget
RUN nuget source Add -Name "Private Feed" -Source ".." -UserName "UserVAR" -Password "PassVAR"
RUN dotnet restore
【问题讨论】:
-
如果你升级 3.1 支持这个docs.microsoft.com/en-us/dotnet/core/tools/…
标签: .net docker .net-core nuget dockerfile