github avatar

Containerize Aspnetcore

Creates a production-ready Dockerfile and .dockerignore for ASP.NET Core projects with proper multi-stage builds, security practices, and Linux distribution support. Handles the tedious bits like setting non-root users, configuring ASPNETCORE_URLS, managing NuGet feeds, and installing system dependencies. Good for when you need more than a basic containerization setup but don't want to research Microsoft's latest base image tags or remember all the Docker best practices. The extensive configuration options cover most real-world scenarios, from custom health checks to volume mounts, though you'll probably only need the first few settings for typical projects.

skills.sh installs
8.9K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill containerize-aspnetcore --agent claude-code

Installs into .claude/skills of the current project.

Files

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)]

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Git & Pull Requests, AI & Agent Building, .NET & C#

More from github/awesome-copilot

All 318
1github avatarphp-mcp-server-generatorgithub/awesome-copilotGenerate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK8.9Kskills.sh installs
2github avatarvscode-ext-localizationgithub/awesome-copilotGuidelines for proper localization of VS Code extensions, following VS Code extension development guidelines, libraries and good practices8.9Kskills.sh installs
3github avatarmake-skill-templategithub/awesome-copilotCreate new Agent Skills for GitHub Copilot from prompts or by duplicating this template. Use when asked to "create a skill", "make a new skill", "scaffold a ski8.9Kskills.sh installs
4github avatarcsharp-mstestgithub/awesome-copilotGet best practices for MSTest 3.x/4.x unit testing, including modern assertion APIs and data-driven tests8.9Kskills.sh installs
5github avatarcomment-code-generate-a-tutorialgithub/awesome-copilotTransform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete 8.9Kskills.sh installs
6github avatarazure-resource-visualizergithub/awesome-copilotAnalyze Azure resource groups and generate detailed Mermaid architecture diagrams showing the relationships between individual resources. Use this skill when th8.9Kskills.sh installs