본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)40k · #7117

containerize-aspnetcore

하는 일

이 도구는 ASP.NET Core 프로젝트를 ‘컨테이너’로 바꾸는 데 필요한 지침(Dockerfile이라고 부르는)을 만듭니다. 컨테이너는 애플리케이션이 실행하는 데 필요한 모든 것을 담은 격리된 패키지와 같아서, 다양한 환경에 더 쉽게 배포할 수 있게 합니다.

사용하는 경우

  • ✓모든 것을 수동으로 설치하지 않고 서버에서 ASP.NET Core 애플리케이션을 실행하고 싶을 때.
  • ✓클라우드 배포(예: Azure, AWS, Google Cloud)를 준비할 때.
  • ✓어떤 컴퓨터에서든 애플리케이션이 같은 방식으로 작동하도록 확실히 하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnetcore/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnetcore/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“‘my-project/my-app.csproj’ 폴더의 내 ASP.NET Core 프로젝트를 위한 컨테이너를 만들어 주세요. .NET 8과 Alpine Linux 배포판을 사용해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 .NET 버전과 원하는 Linux 종류 같은 설정을 분석합니다. 이를 바탕으로 애플리케이션의 컨테이너를 빌드하는 단계별 안내인 Dockerfile을 생성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

  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 "$APP_UID"]
  3. Application URL configuration:

    • [Specify ASPNETCORE_URLS, or default to "http://+:8080"]

Build configuration

  1. Custom build steps that must be performed before building the container image:

    • [List any specific build steps, or "None"]
  2. Custom build steps that must be performed after building the container image:

    • [List any specific build steps, or "None"]
  3. NuGet package sources that must be configured:

    • [List any private NuGet feeds with authentication details, or "None"]

Dependencies

  1. System packages that must be installed in the container image:

    • [Package names for the chosen Linux distribution, or "None"]
  2. Native libraries that must be copied to the container image:

    • [Library names and paths, or "None"]
  3. Additional .NET tools that must be installed:

    • [Tool names and versions, or "None"]

System Configuration

  1. Environment variables that must be set in the container image:
    • [Variable names and values, or "Use defaults"]

File System

  1. 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"]
  2. Files/directories to exclude from containerization:

    • [Paths to exclude, or "None"]
  3. Volume mount points that should be configured:

    • [Volume paths for persistent data, or "None"]

.dockerignore Configuration

  1. Patterns to include in the .dockerignore file (.dockerignore will already have common defaults; these are additional patterns):
    • Additional patterns: [List any additional patterns, or "None"]

Health Check Configuration

  1. Health check endpoint:

    • [Health check URL path, or "None"]
  2. Health check interval and timeout:

    • [Interval and timeout values, or "Use defaults"]

Additional Instructions

  1. Other instructions that must be followed to containerize the project:

    • [Specific requirements, or "None"]
  2. 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))

…

자주 묻는 질문

컨테이너란 무엇인가요?

애플리케이션과 그 기능에 필요한 모든 것(코드, 라이브러리, 설정)을 담은 표준화된 상자라고 생각하면 됩니다. 어디서든 일관되게 실행되도록 보장합니다.

Dockerfile이란 무엇인가요?

Docker(컨테이너 기술)가 컨테이너 이미지를 빌드할 때 따르는 지침이 담긴 텍스트 파일입니다. 애플리케이션 패키지를 만드는 조리법과 같습니다.

이걸 쓰려면 Docker를 많이 알아야 하나요?

아니요. 이 도구가 복잡성을 감춰 주어, 프로젝트의 기본 설정만 지정하면 컨테이너를 만들 수 있습니다.

상세 정보

작성자의 원본 설명

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

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7117
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬