简体   繁体   English

用于面向完整框架的项目的asp.net core 2.0 docker映像

[英]asp.net core 2.0 docker image for projects targeting full framework

Microsoft has multiple docker image flavours for a different kind of .net projects. 微软为不同类型的.net项目提供了多种docker镜像。 like 喜欢

.Net Framework .Net框架

Asp.Net 天网

.Net Core .Net核心

Asp.Net Core Asp.Net核心

Now I have project in asp.net core 2 targeting full net framework 4.6.1 (not targeting netcore2) 现在我在asp.net core 2中有一个针对完整Net Framework 4.6.1的项目(不针对netcore2)

I want to use Docker for deployment of this project, where can I find a suitable docker image? 我想使用Docker部署此项目,在哪里可以找到合适的Docker映像? asp.net core docker image only allows targeting .net core 2, not a full .net framework. asp.net核心docker映像仅允许定位.net核心2,而不是完整的.net框架。

You can use the .NET Framework based docker images here. 您可以在此处使用基于.NET Framework的docker映像。 Since ASP.NET Core on .NET Framework images will contain everything that is needed in the published output, the app should run fine on just .NET Framework dependencies. 由于.NET Framework映像上的ASP.NET Core将包含已发布输出中所需的所有内容,因此该应用程序应仅在.NET Framework依赖项上运行良好。

The docker image for ASP.NET Core on .NET Core only contains the runtime store for the requested ASP.NET Core version in addition to the .NET Core runtime so that the dependencies that aren't included in the published output and expected on the target machine are found. .NET Core上的ASP.NET Core的docker映像除了.NET Core运行时外,还包含所请求的ASP.NET Core版本的运行时存储,因此发布的输出中不包含这些期望的依赖项,并且找到目标机器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM