When running in a pod in k8s, img has problem access file during build. img is running with root user in the pod. While running in ubuntu with non-root user, there is no such problem.
RUN ls -l /root/.nuget/plugins/netcore/CredentialProvider....
14 21.53 /usr/share/dotnet/sdk/3.1.301/NuGet.targets(128,5): error : Problem starting the plugin '/root/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll'. No such file or directory [/build/WebAPIs/Subscription/Subscription.csproj]
When running in a pod in k8s, img has problem access file during build. img is running with root user in the pod. While running in ubuntu with non-root user, there is no such problem.
RUN ls -l /root/.nuget/plugins/netcore/CredentialProvider....
9 5.770 -rwxrwxrwx 1 root root 120712 Jun 18 2020 /root/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll
9 DONE 5.8s
Determining projects to restore...
14 21.53 /usr/share/dotnet/sdk/3.1.301/NuGet.targets(128,5): error : Problem starting the plugin '/root/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll'. No such file or directory [/build/WebAPIs/Subscription/Subscription.csproj]
14 22.03 /usr/share/dotnet/sdk/3.1.301/NuGet.targets(128,5): error : Unable to load the service index for source https://visionlink.pkgs.visualstudio.com/_packaging/VSS/nuget/v3/index.json. [/build/WebAPIs/Subscription/Subscription.csproj]