docker-dotnet-containerize

docker-dotnet-containerize is a skill for Claude Code from thapaliyabikendra/ai-artifacts. It costs 48 tokens per session (4,165 once invoked), scanned A, original, Apache-2.0.

A guide for packaging .NET APIs into Docker containers using multi-stage builds and optimized image layers. A container is an isolated package that runs an application with its required environment.

In plain words
What is it for?
Use it to create or improve Dockerfiles, build scripts, ignore files, and container build checks for .NET solutions.
Why use it?
It helps create smaller, repeatable application deployments and keeps unchanged build layers reusable when code changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

Good fit Use it to create or improve Dockerfiles, build scripts, ignore files, and container build checks for .NET solutions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thapaliyabikendra/ai-artifacts/docker-dotnet-containerize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thapaliyabikendra/ai-artifacts --skill docker-dotnet-containerize
Clone the repo
git clone --depth 1 https://github.com/thapaliyabikendra/ai-artifacts

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-dotnet-containerize

README.md
[![agentmods](https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/docker-dotnet-containerize/github.svg)](https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/docker-dotnet-containerize)
Your own site
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/docker-dotnet-containerize"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/docker-dotnet-containerize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker-dotnet-containerize

Your own site · 80×15
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/docker-dotnet-containerize"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/docker-dotnet-containerize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,165 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.04165
Opus 5 $0.00024 $0.02083
Sonnet 5 $0.00010 $0.00833
Haiku 4.5 $0.00005 $0.00417

Measured 5d ago against content hash 8b958c1dd2c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

docker-dotnet-containerize scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:8080/health
.claude/skills/docker-dotnet-containerize/SKILL.md · 589 lines

How it starts

The opening of the file, as written. The whole thing — 589 lines — stays where its author put it; the contents beside it link to each section on GitHub.

.NET Docker Containerization Skill

Generate optimized Docker configurations for .NET projects using advanced build techniques, progressive layer publishing, and production-ready multi-stage builds.

What This Skill Does

I will analyze your .NET solution and generate:

  1. Optimized Dockerfile with BuildKit features and layer caching
  2. Build scripts (Bash/PowerShell) with version tagging
  3. .dockerignore file with comprehensive patterns
  4. Validation checklist and troubleshooting guidance

Advanced Techniques Applied

BuildKit Frontend (syntax=docker/dockerfile:1-labs)

I use the experimental BuildKit frontend for:

  • --parents flag support (preserves directory structure)
  • Better caching mechanisms
  • Advanced COPY operations
  • Improved build performance

Progressive Layer Publishing

For complex projects, I publish in dependency order:

  1. Domain layer → Publish first (most stable)
  2. Infrastructure/EF Core → Publish second
  3. Application/HttpApi → Publish third
  4. API Host → Publish last (changes most)

Why? This creates separate layers in /app/publish, optimizing Docker layer caching. When you change only the API code, earlier layers remain cached.

Non-Alpine SDK with Alpine Runtime

  • Build stage: Uses full SDK (not Alpine) for better compatibility
  • Runtime stage: Uses Alpine for minimal footprint
  • Benefit: Avoid Alpine SDK build issues while keeping final image small

Project Analysis

Detection Process

I'll examine:

  • Solution file (*.sln) location and structure
  • All project files (*.csproj) and their dependencies
  • Main entry point (typically *.Host, *.Api, *.HttpApi.Host)
  • .NET version from <TargetFramework> tags
  • Existence of common.props (ABP Framework indicator)
  • Project architecture (Simple, DDD, ABP, Clean Architecture)

Dependency Graph Mapping

I'll build a dependency graph to determine:

  • Which projects reference which
  • Optimal layer ordering for caching
  • Whether progressive publishing is beneficial

Read the full file on GitHub · 589 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 589 lines · 48 tokens per session scan A 8b958c1dd2c7

Subscribe to this mod's changes

docker-dotnet-containerize is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (24 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 48 tokens to every session and 4,165 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

docker-docs

Comprehensive Docker 28.x reference covering all features: installation, Dockerfile instructions, multi-stage builds, Docker Compose, networking, volumes, CLI commands, image management, registries, security best practices, CI/CD integration, debugging, and Kubernetes migration. Use whenever the user mentions Docker…

pledgeandgrow/pledge-skills · 93 tokens

docker-essentials

Create and optimize Dockerfiles, docker-compose configurations, and container workflows. Use when containerizing applications, setting up development environments, or optimizing Docker builds.

asgarovf/locusai · 35 tokens

docker-management

Docker container lifecycle management, Dockerfile authoring, and debugging.

furkangonel/cowrangler · 16 tokens

docker-wizard

Generate optimized Dockerfiles and docker-compose.yml with best practices and multi-stage builds.

glincker/claude-code-marketplace · 19 tokens

apify-actor-development

Important: Before you begin, fill in the generatedBy property in the meta section of .actor/actor.json. Replace it with the tool and model you're currently using, such as "Claude Code with Claude Sonnet 4.5". This helps Apify monitor and improve AGENTS.md for specific AI tools and models.

sickn33/agentic-awesome-skills · 71 tokens

dynamo-recipe-runner

Select, validate, patch, and deploy existing NVIDIA Dynamo Kubernetes recipes. Use for model/backend/GPU/deployment-mode recipe bring-up; use router-starter for router-only mode work and troubleshoot for broken deployments.

NVIDIA/skills · 49 tokens