How to use MyGet in docker build process?

I am trying to push SS 5.7.1 to production. My build process happens inside Linux docker container but the build fails because it is not using MyGet.

How do I add MyGet feed to linux build environment?


Linux build environment is irrelevant, it just needs to be configured with NuGet.config containing the MyGet NuGet packages source.

It should pick up the local NuGet.Config file otherwise you can specify it with --configfile argument:

RUN dotnet restore --configfile ./NuGet.Config
1 Like