[英]Building Docker container for .NET Framework 4.7.x in Azure DevOps
I currently have a standard .NET Framework web application. 我目前有一个标准的.NET Framework Web应用程序。 With Docker support. 具有Docker支持。 I would like to build these Docker images using Azure DevOps but there don't seem to be any clear tutorials on how to do that. 我想使用Azure DevOps构建这些Docker映像,但是似乎没有任何明确的教程。
I can build the Docker image using the build button in Visual Studio. 我可以使用Visual Studio中的构建按钮来构建Docker映像。 This makes a usable image that works. 这样可以使可用的图像起作用。 Though I know how to either select such a build option in Azure DevOps or generally outside Visual Studio. 虽然我知道如何在Azure DevOps中或通常在Visual Studio外部选择这样的生成选项。
What I'm using: .NET Framework 4.7.2 boilerplate web app with Docker support. 我正在使用的:具有Docker支持的.NET Framework 4.7.2样板Web应用程序。
You could go with a general Build, test, and push Docker container apps
set of tasks. 您可以执行一般的Build, test, and push Docker container apps
任务集。
When you create a build you can choose a template for the build, you'd need to use the docker build template. 创建构建时,您可以为构建选择一个模板,您需要使用docker构建模板。 Otherwise just follow the linked tutorial. 否则,请按照链接的教程进行操作。
Reading: https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/docker?view=azure-devops 阅读: https : //docs.microsoft.com/zh-cn/azure/devops/pipelines/languages/docker?view=azure-devops
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.