dockerfile-build-cache-mastery - Skill Dossier
dockerfile-build-cache-mastery

dockerfile-build-cache-mastery

Use when optimizing Docker builds with BuildKit, designing multi-stage Dockerfiles, leveraging cache mounts, building multi-arch images, choosing distroless vs alpine, or signing images with cosign. Triggers: docker build slow, layer cache not hitting, npm install / pip install reruns, multi-stage final image bloat, glibc vs musl issues, RUN --mount=type=cache, BUILDKIT_INLINE_CACHE, registry cache exporters, qemu emulation for arm64, COPY ordering for cache. NOT for Docker daemon admin, Kubernetes-specific image policies, container security scanning workflows, or Buildpacks (different paradigm).

DevOps & Infrastructure
#docker#buildkit#multi-stage#cache#distroless#container

Allowed Tools

ReadGrepGlobEditWriteBash

Share this skill

Skills use the open SKILL.md standard — the same file works across all platforms.

Install all 547 skills as a plugin
claude plugin marketplace add curiositech/windags-skills claude plugin install windags-skills

Claude activates dockerfile-build-cache-mastery automatically when your task matches its description.

View on GitHub