Interview practice question
Docker images too big and slow to build
Data Engineering · DataOps CI/CD · Intermediate
Your pipeline Docker images are several GB and take 20 minutes to build in CI. How do you improve this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Use slim base images.
- Multi-stage builds to exclude build tools.
- Order layers for caching (dependencies before code).
- Use CI layer caching.
- Remove unnecessary packages and files.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.