我正在尝试部署控制台应用程序。当我运行容器时,出现以下错误:
System.DllNotFoundException: Unable to load shared library 'kernel32.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libkernel32.dll: cannot open shared object file: No such file or directory
at Interop.Kernel32.GlobalMemoryStatusEx(MEMORYSTATUSEX& lpBuffer)
at System.Runtime.Caching.MemoryMonitor..cctor()
Run Code Online (Sandbox Code Playgroud)
下面是docker文件的代码
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
RUN mkdir -p /dest
ADD /Publish /dest/
WORKDIR /dest
CMD ["dotnet","application.dll"]
Run Code Online (Sandbox Code Playgroud)
任何建议都会非常有帮助。