Dockerfile can't see local file or private nuget server

后端 未结 5 1579
轮回少年
轮回少年 2021-01-11 10:38

I am trying to start my .net core web api on container tech. using docker.

Environments=Windows 10,Visual Studio

Docker version:

Clien

5条回答
  •  耶瑟儿~
    2021-01-11 10:45

    You can add the private nuget through dotnet command, without the need to link to nuget.config file.

    COPY *.csproj ./  
    
    RUN dotnet nuget add source  -n  
    
    RUN dotnet restore 
    

提交回复
热议问题