Hi everyone,
I have a little problem with containerizing my application and I hope that you can help me.
I am currently programming an ASP.NET Core web application using the Nuget package Telerik UI for ASP.NET Core. In order to use this package I have given a local path on my hard drive where the nupkg file is located. (see picture 1)
For the containerization I created the Dockerfile and the Docker-Compose. Everything worked fine during development, but as soon as I try to containerize the app with the command "docker-compose build", I get the following error. -> Unable to find package Telerik.UI.for.AspNet.Core with version> = 2021.2.511 (see picture 2)
I've read that I need a nuget.config file. I created this with the command "dotnet new nugetconfig". Then I added the package source "local" and "nuget.org". "local" refers to the folder "Package" that I created in the project folder and into which I copied the nupkg file. (see picture 3)
If I run the "docker-compose build" command again, I get another error -> The local source [...] doesn't exist (see image 4)
So my question is what do I have to do in order for the Nuget package to be found and the Docker build to work?
(My Dockerfile and Docker-Compose can also be found in the attachments)
Thanks in advance
Lars
I have a little problem with containerizing my application and I hope that you can help me.
I am currently programming an ASP.NET Core web application using the Nuget package Telerik UI for ASP.NET Core. In order to use this package I have given a local path on my hard drive where the nupkg file is located. (see picture 1)
For the containerization I created the Dockerfile and the Docker-Compose. Everything worked fine during development, but as soon as I try to containerize the app with the command "docker-compose build", I get the following error. -> Unable to find package Telerik.UI.for.AspNet.Core with version> = 2021.2.511 (see picture 2)
I've read that I need a nuget.config file. I created this with the command "dotnet new nugetconfig". Then I added the package source "local" and "nuget.org". "local" refers to the folder "Package" that I created in the project folder and into which I copied the nupkg file. (see picture 3)
If I run the "docker-compose build" command again, I get another error -> The local source [...] doesn't exist (see image 4)
So my question is what do I have to do in order for the Nuget package to be found and the Docker build to work?
(My Dockerfile and Docker-Compose can also be found in the attachments)
Thanks in advance
Lars