Interview practice question
Builds are slow because the build context is huge
Cloud & DevOps · Docker · Intermediate
docker build spends minutes on "transferring context" before any step runs. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Context includes whole folder.
- Add .dockerignore (node_modules, .git, data).
- Build from smaller directory.
- Check for large files accidentally included.
- BuildKit transfers incrementally.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.