Godziak
Nuget packages won't restore properly when building in docker when using custom nuget feed
I have a custom NuGet package feed, and everything works when I build the application locally using VS or dotnet build.
However, when I build the same project in Docker, it fails with the error:
The type or namespace name 'ImageApi' could not be found (are you missing a using directive or an assembly reference?)
The Dockerfile looks like this:
It doesn't show any errors during the restore.
I also tried restoring directly for Aero.InternalApi.Services, also without any errors.
It fails only during the build.
Does anyone have any idea how can i fix this or have encountered something similar?
21 replies