docker

安装量: 35
排名: #28622

安装

npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill docker

Docker Core Principles Multi-stage builds always — Separate build and runtime stages. Build in the SDK image, run in the ASP.NET runtime image. Non-root by default — .NET container images support USER app by default since .NET 8. Never run as root in production. Layer caching matters — Copy .csproj files and restore before copying source code. This caches NuGet dependencies across builds. Health probes at the orchestrator level — Expose a /health/live endpoint and let Kubernetes/Compose probe it. Chiseled and default aspnet images have no shell or curl, so in-image HEALTHCHECK commands have nothing to run with. Patterns Multi-Stage Dockerfile for Web API

Stage 1: Build

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build WORKDIR /src Show more Installs 1.1K Repository codewithmukesh/…aude-kit GitHub Stars 703 First Seen Apr 2, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

← 返回排行榜