Saltar al contenido
Skillpedia
Deploy y nube (DevOps)40 mil · #7116

containerize-aspnet-framework

Qué hace

Esta herramienta crea las instrucciones necesarias (llamadas Dockerfile) para convertir un proyecto ASP.NET de .NET Framework en un contenedor. Así, tu aplicación puede ejecutarse de forma consistente en cualquier lugar.

Cuándo usarla

  • ✓Cuando quieras ejecutar tu aplicación ASP.NET en un servidor diferente.
  • ✓Cuando prepares tu aplicación para desplegarla en la nube.
  • ✓Para asegurarte de que tu aplicación funciona igual en distintos entornos de pruebas.

Link de la skill

https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnet-framework/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnet-framework/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Contenedoriza mi proyecto ASP.NET ubicado en 'C:\myproject\myproject.csproj', usando Windows Server 2022 Core y exponiendo el puerto 80.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La herramienta analiza los ajustes que le das, como la ruta del proyecto y los puertos. Después genera un archivo llamado Dockerfile con todos los comandos para compilar y ejecutar tu aplicación dentro de un entorno aislado (contenedor).

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

ASP.NET .NET Framework Containerization Prompt

Containerize the ASP.NET (.NET Framework) project specified in the containerization settings below, focusing exclusively on changes required for the application to run in a Windows Docker container. Containerization should consider all settings specified here.

REMEMBER: This is a .NET Framework application, not .NET Core. The containerization process will be different from that of a .NET Core application.

Containerization Settings

This section of the prompt contains the specific settings and configurations required for containerizing the ASP.NET (.NET Framework) application. Prior to running this prompt, ensure that the settings are filled out with the necessary information. Note that in many cases, only the first few settings are required. Later settings can be left as defaults if they do not apply to the project being containerized.

Any settings that are not specified will be set to default values. The default values are provided in [square brackets].

Basic Project Information

  1. Project to containerize:

    • [ProjectName (provide path to .csproj file)]
  2. Windows Server SKU to use:

    • [Windows Server Core (Default) or Windows Server Full]
  3. Windows Server version to use:

    • [2022, 2019, or 2016 (Default 2022)]
  4. Custom base image for the build stage of the Docker image ("None" to use standard Microsoft base image):

    • [Specify base image to use for build stage (Default None)]
  5. Custom base image for the run stage of the Docker image ("None" to use standard Microsoft base image):

    • [Specify base image to use for run stage (Default None)]

Container Configuration

  1. Ports that must be exposed in the container image:

    • Primary HTTP port: [e.g., 80]
    • Additional ports: [List any additional ports, or "None"]
  2. User account the container should run as:

    • [User account, or default to "ContainerUser"]
  3. IIS settings that must be configured in the container image:

    • [List any specific IIS settings, or "None"]

Build configuration

  1. Custom build steps that must be performed before building the container image:

    • [List any specific build steps, or "None"]
  2. Custom build steps that must be performed after building the container image:

    • [List any specific build steps, or "None"]

Dependencies

  1. .NET assemblies that should be registered in the GAC in the container image:

    • [Assembly name and version, or "None"]
  2. MSIs that must be copied to the container image and installed:

    • [MSI names and versions, or "None"]
  3. COM components that must be registered in the container image:

    • [COM component names, or "None"]

System Configuration

  1. Registry keys and values that must be added to the container image:

    • [Registry paths and values, or "None"]
  2. Environment variables that must be set in the container image:

    • [Variable names and values, or "Use defaults"]
  3. Windows Server roles and features that must be installed in the container image:

    • [Role/feature names, or "None"]

File System

  1. Files/directories that need to be copied to the container image:

    • [Paths relative to project root, or "None"]
    • Target location in container: [Container paths, or "Not applicable"]
  2. Files/directories to exclude from containerization:

    • [Paths to exclude, or "None"]

.dockerignore Configuration

  1. Patterns to include in the .dockerignore file (.dockerignore will already have common defaults; these are additional patterns):
    • Additional patterns: [List any additional patterns, or "None"]

Health Check Configuration

  1. Health check endpoint:

    • [Health check URL path, or "None"]
  2. Health check interval and timeout:

    • [Interval and timeout values, or "Use defaults"]

Additional Instructions

  1. Other instructions that must be followed to containerize the project:

    • [Specific requirements, or "None"]
  2. Known issues to address:

    • [Describe any known issues, or "None"]

Scope

  • ✅ App configuration modification to ensure config builders are used to read app settings and connection strings from the environment variables
  • ✅ Dockerfile creation and configuration for an ASP.NET application
  • ✅ Specifying multiple stages in the Dockerfile to build/publish the application and copy the output to the final image
  • ✅ Configuration of Windows container platform compatibility (Windows Server Core or Full)

…

Preguntas frecuentes

¿Qué es un contenedor?

Un contenedor es como una caja ligera y aislada que guarda todo lo que tu aplicación necesita para funcionar: código, librerías y configuraciones. Así se comporta igual en cualquier ordenador.

¿Cuál es la diferencia entre .NET Framework y .NET Core?

.NET Framework es una versión más antigua, que normalmente se usa en sistemas Windows. .NET Core (ahora solo .NET) es más moderno, multiplataforma y flexible. Esta herramienta es específica para .NET Framework.

¿Tengo que instalar algo antes?

Sí, el proyecto necesita tener instalado el paquete NuGet 'Microsoft.Configuration.ConfigurationBuilders.Environment'. Si no lo tiene, tendrás que instalarlo manualmente en Visual Studio antes de usar esta herramienta.

Detalles

Descripción original del autor

Containerize an ASP.NET .NET Framework project by creating Dockerfile and .dockerfile files customized for the project.

repo: github/awesome-copilot

Popularidad

Estrellas en GitHub
40 mil
Posición en el ranking
#7116
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas