Docker build is flaky in CI due to network errors on package installs.
IntermediateScenarioCI/CD and production rollouts
Answer
Situation read → External mirrors fail intermittently.
What I'd do → Use internal package proxies (Artifactory/Nexus/Athens), add retries (pip --retries 5, apt -o Acquire::Retries=3), vendor dependencies for critical paths, and use cache mounts.
Why → Reduces external dependency on the critical path.
Interview tip → Flaky builds are an availability problem for the whole team.
More on CI/CD and production rollouts
Design a GitHub Actions workflow that builds, scans and pushes an image.IntermediateZero-downtime deploy on a single Docker host.AdvancedDeploy via GitOps with image digests.IntermediateCanary a new image on a Swarm service.AdvancedRun database migrations in the deploy flow of containerized apps.IntermediateHow do you keep dev, CI and prod consistent?Beginner