Optimize Docker Build Cache

Optimize Docker build times using layer caching, multi-stage builds, BuildKit features, and dependency-first copy patterns. Applicable to R, Node.js, and Python projects. Use when Docker builds are slow due to repeated package installations, when rebuilds reinstall all dependencies on every code change, when image sizes are unnecessarily large, or when CI/CD pipeline builds are a bottleneck.

pjt222 Updated

File contents

pjt222/agent-almanac/tree/main/skills/optimize-docker-build-cache commit 558b6c96a6

Frequently asked questions

npx skillmds@latest add pjt222/optimize-docker-build-cache