Dockerfile can't see local file or private nuget server

后端 未结 5 1582
轮回少年
轮回少年 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:50

    In order for a dotnet command running inside a container to find your custom feeds, the nuget.config file must also be copied to the container.

    To do this, add a nuget.config file with your private feed to your project folder and add an additional COPY step that copies this file to the container.

    Example (Dockerfile):

    WORKDIR ...
    COPY NuGet.Config /
    COPY ... ...
    

提交回复
热议问题