I made a docker file for a .net core console app:
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 LABEL author="some name" LABEL description="some description" ENTRYPOINT [ "dotnet", "L1_1_Console.dll" ]
and created an image from it called “labo1_1_console_image”
When i try to run this image with this command:
docker run --rm -it labo1_1_console_image
I get this error:
Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET Core program, but dotnet-L1_1_Console.dll does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
I think the problem is the second one (im not sure) but i dont know how to fix this my L1_1_Console.dll file is respectivly to the docker file location /bin/Release/netcoreapp3.1 (i also have a publish folder in here with the same files)