title: How to add private nuget source in dotnet dockerfile?
body: <p>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:</p>
  
  <ul>
  <li><code>nuget</code> is not recognized as command inside the image</li>
  <li><code>dotnet nuget</code> does not have the command to add additional sources</li>
  <li>installing nuget does not effect <code>dotnet restore</code></li>
  </ul>
  
  <pre class="lang-sh prettyprint-override"><code>FROM mcr.microsoft.com/dotnet/core/sdk:2.2 
  RUN apt-get update &amp;&amp; apt-get install -y nuget 
  RUN nuget source Add -Name "Private Feed" -Source ".." -UserName "UserVAR" -Password "PassVAR"
  RUN dotnet restore
  </code></pre>