This docker image extends microsoft/dotnet(:2.1-sdk|2.2-sdk) and pipes nuget requests through a local nginx reverse proxy. The proxy will do the authentication instead of dotnet restore itself.
This is a workaround for the authentication problems we had while calling dotnet restore on linux systems (docker) which throws errors like GSSAPI operation failed with error - An invalid status code was supplied (SPNEGO cannot find mechanisms to negotiate)
.
$ nugetproxy https://username:password@server.de/your/nuget/repo
The script will create /etc/nuget.config too.
$ cd /your/project/directory
$ dotnet restore --configfile /etc/nuget.config
$ dotnet test -c release
$ dotnet publis -r linux-x64 -c release