containerize-aspnetcore
Was er macht
Dieses Tool erstellt die nötigen Anweisungen (genannt Dockerfile), um dein ASP.NET Core Projekt in einen „Container“ zu verpacken. Ein Container ist wie ein isoliertes Paket, das alles enthält, was deine Anwendung zum Laufen braucht. So lässt sie sich leichter in verschiedenen Umgebungen betreiben.
Wann du ihn nutzt
- ✓Wenn du deine ASP.NET Core Anwendung auf einem Server betreiben möchtest, ohne alles manuell zu installieren.
- ✓Wenn du deine Anwendung für die Cloud vorbereitest (zum Beispiel für Azure, AWS oder Google Cloud).
- ✓Wenn du sicherstellen willst, dass deine Anwendung auf jedem Computer gleich funktioniert.
Link zum Skill
https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnetcore/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle einen Container für mein ASP.NET Core Projekt im Ordner 'my-project/my-app.csproj', mit .NET 8 und der Linux-Distribution Alpine Linux.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Das Tool analysiert die Einstellungen, die du angibst, zum Beispiel die .NET-Version und den gewünschten Linux-Typ. Auf dieser Basis erzeugt es eine Datei namens Dockerfile. Sie ist eine Schritt-für-Schritt-Anleitung, mit der der Container deiner Anwendung gebaut wird.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
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
Project to containerize:
[ProjectName (provide path to .csproj file)]
.NET version to use:
[8.0 or 9.0 (Default 8.0)]
Linux distribution to use:
[debian, alpine, ubuntu, chiseled, or Azure Linux (mariner) (Default debian)]
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., 8080] - Additional ports:
[List any additional ports, or "None"]
- Primary HTTP port:
User account the container should run as:
[User account, or default to "$APP_UID"]
Application URL configuration:
[Specify ASPNETCORE_URLS, or default to "http://+:8080"]
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"]
NuGet package sources that must be configured:
[List any private NuGet feeds with authentication details, or "None"]
Dependencies
System packages that must be installed in the container image:
[Package names for the chosen Linux distribution, or "None"]
Native libraries that must be copied to the container image:
[Library names and paths, or "None"]
Additional .NET tools that must be installed:
[Tool names and versions, or "None"]
System Configuration
- Environment variables that must be set in the container image:
[Variable names and values, or "Use defaults"]
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"]
Volume mount points that should be configured:
[Volume paths for persistent data, 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 application settings and connection strings can be read from environment variables
- ✅ Dockerfile creation and configuration for an ASP.NET Core application
- ✅ Specifying multiple stages in the Dockerfile to build/publish the application and copy the output to the final image
- ✅ Configuration of Linux container platform compatibility (Alpine, Ubuntu, Chiseled, or Azure Linux (Mariner))
…
Häufige Fragen
Was ist ein Container?
Stell dir einen Container als standardisierte Box vor, die deine Anwendung und alles enthält, was sie zum Funktionieren braucht: Code, Bibliotheken und Einstellungen. So läuft sie überall gleich.
Was ist ein Dockerfile?
Es ist eine Textdatei mit Anweisungen, denen Docker (die Container-Technologie) folgt, um dein Container-Image zu bauen. Man kann es sich wie ein Rezept für das Paket deiner Anwendung vorstellen.
Muss ich mich gut mit Docker auskennen, um das zu nutzen?
Nein. Das Tool übernimmt die Komplexität. Du gibst nur die grundlegenden Einstellungen deines Projekts an, und der Container wird erstellt.
Details
Originalbeschreibung des Autors
Containerize an ASP.NET Core project by creating Dockerfile and .dockerfile files customized for the project.
repo: github/awesome-copilot
Beliebtheit
- GitHub-Sterne
- 40k
- Platz im Ranking
- #7117
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
acquire-codebase-knowledge
40kHilft deinem Agenten, ein bestehendes Code-Projekt zu verstehen und zu dokumentieren. Nützlich, um neue Teammitglieder einzuarbeiten oder die Architektur zu überblicken.
acreadiness-assess
40kErmöglicht deinem Agenten, die KI-Tauglichkeit eines Projekts zu prüfen und einen Bericht zu erstellen. So siehst du, wie gut das Projekt auf KI-Tools vorbereitet ist.
acreadiness-generate-instructions
40kHilft deinem Agenten, auf Basis einer Prüfung Anweisungen für KI-Tools zu erstellen. So arbeitet die KI besser mit dem Code und erkannte Lücken werden geschlossen.
acreadiness-policy
40kErmöglicht deinem Agenten, Richtlinien für die Bewertung von KI-Projekten festzulegen oder anzuwenden. So werden Projekte einheitlich geprüft und Vorgaben eingehalten.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.