containerize-aspnetcore
Fungsinya
Tool ini membuat instruksi yang dibutuhkan (disebut Dockerfile) untuk mengubah project ASP.NET Core Anda menjadi 'container'. Container itu seperti paket terisolasi yang berisi semua yang dibutuhkan aplikasi untuk berjalan, sehingga lebih mudah di-deploy di berbagai environment.
Kapan dipakai
- ✓Saat Anda ingin menjalankan aplikasi ASP.NET Core di server tanpa menginstal semuanya secara manual.
- ✓Saat menyiapkan aplikasi untuk deployment ke cloud (seperti Azure, AWS, Google Cloud).
- ✓Jika Anda perlu memastikan aplikasi bekerja dengan cara yang sama di komputer mana pun.
Link skill
https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnetcore/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Buatkan container untuk project ASP.NET Core saya di folder 'my-project/my-app.csproj', menggunakan .NET 8 dan distribusi Alpine Linux.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini menganalisis pengaturan yang Anda berikan, seperti versi .NET dan jenis Linux yang diinginkan. Berdasarkan itu, tool akan membuat file bernama Dockerfile, yaitu panduan langkah demi langkah untuk membangun container aplikasi Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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))
…
Pertanyaan umum
Apa itu container?
Anggap container sebagai kotak standar yang berisi aplikasi beserta semua kebutuhannya agar bisa berfungsi, seperti kode, library, dan pengaturan. Dengan begitu, aplikasi berjalan konsisten di mana saja.
Apa itu Dockerfile?
Dockerfile adalah file teks berisi instruksi yang diikuti Docker (teknologi container) untuk membangun image container Anda. Anggap saja seperti resep untuk membuat paket aplikasi Anda.
Apakah saya harus paham banyak tentang Docker untuk menggunakan ini?
Tidak perlu. Tool ini menyederhanakan prosesnya, sehingga Anda cukup menentukan pengaturan dasar project untuk membuat container.
Detail
Deskripsi asli dari pembuat
Containerize an ASP.NET Core project by creating Dockerfile and .dockerfile files customized for the project.
repo: github/awesome-copilot
Popularitas
- Bintang GitHub
- 40k
- Peringkat
- #7117
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- …
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.