How to add private nuget source in dotnet dockerfile?
问题 I try to add (override) a private nuget source to my build script in order to add the user/pw - and keep it out of my source control. What I tried so far: nuget is not recognized as command inside the image dotnet nuget does not have the command to add additional sources installing nuget does not effect 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