Reference docMembers
Dockerfile Best Practices Reference
Dockerfile Best Practices Reference is a reference document for Claude Code, from the Alireza Rezvani skills and agents collection by alirezarezvani. The full text is about 700 words in 29 sections, with 18 code blocks and 6 tables. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.
It is most useful for people working in DevOps and infrastructure and Product and engineering who use Claude Code.
What it covers
- Layer Optimization
- The Golden Rule
- Combine Related Commands
- Order Layers by Change Frequency
- Use .dockerignore
- Base Image Selection
- Size Comparison approximate
- When to Use Alpine
- When to Use Slim
- When to Use Distroless
The full text is in the members library
Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.
Author: alirezarezvani, Alireza Rezvani skills and agents. License: MIT.