Tag

image-size

0 views collected around this technical thread.

DevOps Cloud Academy
DevOps Cloud Academy
Sep 23, 2020 · Operations

Best Practices for Refactoring Large Dockerfiles to Reduce Size and Improve Maintainability

When Dockerfiles grow too large they become hard to understand, can hide security flaws, cause Git conflicts, and bloat image size, so the article presents five refactoring techniques—including using official images, extracting dependencies, multi‑stage builds, sorting parameters, and proper tagging—to keep Dockerfiles small, clear, and secure.

Best PracticesDevOpsDocker
0 likes · 9 min read
Best Practices for Refactoring Large Dockerfiles to Reduce Size and Improve Maintainability
Qunar Tech Salon
Qunar Tech Salon
Sep 6, 2018 · Cloud Native

Three Simple Tricks for Smaller Docker Images: Multi‑Stage Builds, Distroless, and Alpine

This article explains how to reduce Docker image size by consolidating RUN commands, using multi‑stage builds, and switching to minimal base images such as distroless or Alpine, providing concrete Node.js examples, size comparisons, and guidance on choosing the right base image for production.

AlpineContainer OptimizationDocker
0 likes · 12 min read
Three Simple Tricks for Smaller Docker Images: Multi‑Stage Builds, Distroless, and Alpine