containerize-aspnet-framework
できること
このツールは、ASP.NET .NET Framework プロジェクトを コンテナ にするために必要な手順書(Dockerfile と呼ばれます)を作成します。これにより、アプリケーションをどこでも一貫した状態で実行できるようになります。
使う場面
- ✓別のサーバーで ASP.NET アプリケーションを実行したいとき。
- ✓クラウドへのデプロイに向けてアプリケーションを準備するとき。
- ✓さまざまなテスト環境で、アプリケーションが同じように動作するようにしたいとき。
スキルのリンク
https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnet-framework/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“'C:\myproject\myproject.csproj' にある ASP.NET プロジェクトをコンテナ化してください。Windows Server 2022 Core を使用し、ポート 80 を公開してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、プロジェクトのパスやポートなど、入力された設定を分析します。その後、アプリケーションをビルドし、隔離された環境(コンテナ)の中で実行するためのコマンドをすべて含む Dockerfile という名前のファイルを生成します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
Project to containerize:
[ProjectName (provide path to .csproj file)]
Windows Server SKU to use:
[Windows Server Core (Default) or Windows Server Full]
Windows Server version to use:
[2022, 2019, or 2016 (Default 2022)]
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)]
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
Ports that must be exposed in the container image:
- Primary HTTP port:
[e.g., 80] - Additional ports:
[List any additional ports, or "None"]
- Primary HTTP port:
User account the container should run as:
[User account, or default to "ContainerUser"]
IIS settings that must be configured in the container image:
[List any specific IIS settings, or "None"]
Build configuration
Custom build steps that must be performed before building the container image:
[List any specific build steps, or "None"]
Custom build steps that must be performed after building the container image:
[List any specific build steps, or "None"]
Dependencies
.NET assemblies that should be registered in the GAC in the container image:
[Assembly name and version, or "None"]
MSIs that must be copied to the container image and installed:
[MSI names and versions, or "None"]
COM components that must be registered in the container image:
[COM component names, or "None"]
System Configuration
Registry keys and values that must be added to the container image:
[Registry paths and values, or "None"]
Environment variables that must be set in the container image:
[Variable names and values, or "Use defaults"]
Windows Server roles and features that must be installed in the container image:
[Role/feature names, or "None"]
File System
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"]
Files/directories to exclude from containerization:
[Paths to exclude, or "None"]
.dockerignore Configuration
- Patterns to include in the
.dockerignorefile (.dockerignore will already have common defaults; these are additional patterns):- Additional patterns:
[List any additional patterns, or "None"]
- Additional patterns:
Health Check Configuration
Health check endpoint:
[Health check URL path, or "None"]
Health check interval and timeout:
[Interval and timeout values, or "Use defaults"]
Additional Instructions
Other instructions that must be followed to containerize the project:
[Specific requirements, or "None"]
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)
…
よくある質問
コンテナとは何ですか?
コンテナは、アプリケーションの実行に必要なもの(コード、ライブラリ、設定など)をすべて詰め込んだ、軽量で隔離された箱のようなものです。これにより、どのコンピューターでも同じように動作します。
.NET Framework と .NET Core の違いは何ですか?
.NET Framework は古いバージョンで、主に Windows システムで使われます。.NET Core(現在は単に .NET)はより新しく、クロスプラットフォームで柔軟です。このツールは .NET Framework 専用です。
事前に何かインストールが必要ですか?
はい、プロジェクトに NuGet パッケージ 'Microsoft.Configuration.ConfigurationBuilders.Environment' がインストールされている必要があります。インストールされていない場合は、このツールを使用する前に Visual Studio で手動でインストールしてください。
詳細
作者による元の説明
Containerize an ASP.NET .NET Framework project by creating Dockerfile and .dockerfile files customized for the project.
repo: github/awesome-copilot
人気
- GitHubのスター
- 40k
- ランキング
- #7116
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
acquire-codebase-knowledge
40kエージェントが、既存のコードプロジェクトを理解してドキュメント化できるよう支援します。新しく参加するメンバーのオンボーディングや、アーキテクチャの全体像の把握に役立ちます。
acreadiness-assess
40kエージェントが、プロジェクトのAI対応状況を評価してレポートを生成できるよう支援します。プロジェクトがAIツールをどの程度活用できる状態にあるかを把握するのに役立ちます。
acreadiness-generate-instructions
40kエージェントが、評価結果をもとにAIツール向けの指示文を作成できるよう支援します。AIがコードとどのようにやり取りするかを改善し、特定された不足点を解消するのに役立ちます。
acreadiness-policy
40kエージェントが、AIプロジェクトの評価ポリシーの策定や適用を支援できるようにします。プロジェクトの評価方法を標準化し、コンプライアンスを確保するのに役立ちます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。