我在Windows Server 2019 OS的容器上运行一个ASP.NET Core应用程序。 这就是我的Dockerfile的样子
ARG source
WORKDIR /app
EXPOSE 80
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT ["dotnet", "NextGenModelReasonService.dll"]
我无法使用Visual Studio进行调试,因为它错误地指出
当我尝试在不调试的情况下运行它时,出现以下错误,
container 55d7ccb384894b7acf7a3a6783c82cafdcc87782948d2a5be96f0575971685ad encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"C:\\Program Files\\dotnet\\dotnet.exe --additionalProbingPath c:\\.nuget\\packages --additionalProbingPath c:\\.nuget\\fallbackpackages bin/Debug/netcoreapp2.1/NextGenModelReasonService.dll","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_ENVIRONMENT":"Development","DOTNET_USE_POLLING_FILE_WATCHER":"1","NUGET_FALLBACK_PACKAGES":"c:\\.nuget\\fallbackpackages","NUGET_PACKAGES":"C:\\.nuget\\packages"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}```