I am using an offline machine of a company (without internet connexion). When I do docker-compose, I have the error : Unable to load service index for source https://api.nuget.org/v3/index.json. (Which is normal because I have no internet on my machine). The problem is, even though I changed the Nuget.config file (so the path "https://api.nuget.org/v3/index.json" is no longer in Nuget.config), I still have the same error:
Here you have the docker file of my service :
And the docker-compose:
Thank you for your help.
When you do the
dotnet restore in the Dockerfile, you’ve only copied the .csproj file into the container.
Copy the nuget.config file into the container as well, before doing