Docker找不到私有nuget服务

docker 创建image遇到问题

因为项目中使用了本地搭建的私有nugut服务。

所以直接  dotnet restore (Restores the dependencies and tools of a project)操作会存在引用的包找不到的问题

参考资料:https://stackoverflow.com/questions/48821991/dockerfile-cant-see-local-file-or-private-nuget-server

修改dockerfile文件内容:RUN dotnet restore Web/Web.csproj" -s http://xxxxxx/nuget

 

posted @ 2020-07-30 11:52  芝幽幽  阅读(357)  评论(0编辑  收藏  举报