Agent skill · software engineering · github

containerize-aspnetcore

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

Why this skill is useful

Provides specific Dockerfile configurations and best practices for containerizing ASP.NET Core applications that the AI wouldn't reliably generate on its own.

What it needs

Requires docker installed locally. About 9k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.

What this skill does

ASP.NET Core Docker Containerization Prompt Containerization Request Containerize the ASP.NET Core (.NET) project specified in the settings below, focusing exclusively on changes required for the application to run in a Linux Docker container. Containerization should consider all settings specified here. Abide by best practices for containerizing .NET Core applications, ensuring that the container is optimized for performance, security, and maintainability. Containerization Settings This section of the prompt contains the specific settings and configurations required for containerizing the ASP.NET Core 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. .NET version to use: [8.0 or 9.0 (Default 8.0)] 3. Linux distribution to use: [debian, alpine, ubuntu, chiseled, or Azure Linux (mariner) (Default debian)] 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., 8080] Additional ports: [List any additional ports, or "None"] 2. User account the container should run as: [User account, or default to "$APPUID"] 3. Application URL configuration: [Specify ASPNETCOREURLS, or default to "http://+:8080"] Build configuration 1. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills github/containerize-aspnetcore

View the source on GitHub

Browse the @skills marketplace