Skip to main content

optimize-docker-build-cache

Optimize an existing Dockerfile for faster build times and smaller images by reordering layers by change frequency, separating dependency installation from code copies, implementing multi-stage builds, and enabling BuildKit features. Use when Docker builds reinstall packages on every code change, when image sizes exceed 500MB without clear need, or when CI builds take more than 2 minutes due to repeated dependency installation.

Jump to install

Source facts

Repository
merceralex397-collab/meta-skill-engineering
Last source activity
May 3, 2026 at 07:55
Detected SKILL.md language
English
Stars
2
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.