Tag

Multi‑Stage Build

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
May 26, 2025 · Operations

Master Dockerfile: Essential Commands and Best Practices for Building Efficient Images

This article explains how Docker images are created, introduces Dockerfile syntax and key instructions such as FROM, COPY, RUN, CMD, and ENTRYPOINT, and provides practical guidelines and real‑world examples for building clean, lightweight containers.

Best PracticesContainer ImagesDocker
0 likes · 21 min read
Master Dockerfile: Essential Commands and Best Practices for Building Efficient Images
macrozheng
macrozheng
Jan 9, 2025 · Cloud Native

How to Shrink Docker Images from 1.16 GB to 22 MB: Step‑by‑Step Optimization

This article explains Docker fundamentals, outlines why containers are popular, and walks through a practical example of reducing a React app's Docker image size from 1.16 GB to 22 MB using a lightweight Alpine base, multi‑stage builds, and an Nginx final stage.

AlpineContainerizationDocker
0 likes · 8 min read
How to Shrink Docker Images from 1.16 GB to 22 MB: Step‑by‑Step Optimization
Java Tech Enthusiast
Java Tech Enthusiast
Dec 5, 2024 · Cloud Native

Optimizing Docker Images for Lightweight Deployment

By switching to a lightweight Alpine base, employing multi‑stage builds to separate compilation from runtime, and finally serving the React app with an Nginx Alpine image, Docker images can be reduced from over a gigabyte to roughly twenty‑two megabytes, enabling efficient, minimal‑footprint container deployment.

AlpineContainerizationDocker
0 likes · 6 min read
Optimizing Docker Images for Lightweight Deployment
Selected Java Interview Questions
Selected Java Interview Questions
Dec 5, 2024 · Cloud Native

Docker Image Slimming for ReactJS Applications: A Step‑by‑Step Guide

This tutorial demonstrates how to reduce Docker image size for a ReactJS project by switching to Alpine‑based Node images, applying multi‑stage builds, and finally serving the static build with Nginx, shrinking the image from over 1.4 GB to just 22 MB while preserving functionality.

ContainerizationDockerImage Optimization
0 likes · 7 min read
Docker Image Slimming for ReactJS Applications: A Step‑by‑Step Guide
Efficient Ops
Efficient Ops
Nov 5, 2023 · Cloud Native

Boost Dockerfile Efficiency: Faster Builds, Smaller Images, Cleaner Containers

This guide explains how to write efficient Dockerfiles by using .dockerignore, minimizing layers, combining RUN commands, selecting lightweight base images, cleaning up after installations, setting proper WORKDIR and CMD, leveraging ENTRYPOINT with exec, preferring COPY over ADD, and applying multi‑stage builds to achieve faster builds and smaller, more maintainable images.

ContainerDockerDockerfile
0 likes · 20 min read
Boost Dockerfile Efficiency: Faster Builds, Smaller Images, Cleaner Containers
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 23, 2023 · Frontend Development

Why Docker? Standardizing CI/CD and Deployment for Frontend Applications

This article explains the importance of Docker for frontend development, covering its role as a consistent runtime environment, the benefits of standardized CI/CD pipelines, multi‑stage builds, caching strategies, and practical deployment patterns for static assets, Node.js services, and micro‑frontend architectures.

CI/CDContainerizationDocker
0 likes · 22 min read
Why Docker? Standardizing CI/CD and Deployment for Frontend Applications
Cloud Native Technology Community
Cloud Native Technology Community
Aug 27, 2021 · Cloud Native

How to Reduce Docker Image Size for a ReactJS Application from 1.43 GB to 22.4 MB

This tutorial shows step‑by‑step how to containerize a ReactJS app and dramatically shrink its Docker image using Alpine base images, multi‑stage builds, and Nginx, reducing the size from 1.43 GB to just 22.4 MB while preserving functionality.

AlpineContainerizationDocker
0 likes · 7 min read
How to Reduce Docker Image Size for a ReactJS Application from 1.43 GB to 22.4 MB
Practical DevOps Architecture
Practical DevOps Architecture
Jun 22, 2021 · Cloud Native

Practical Guide to Heterogeneous Image Builds and Multi‑Stage Dockerfile Optimization

This article explains heterogeneous Docker image builds, demonstrates how to name and reference multi‑stage build stages for clearer Dockerfiles, shows how to limit builds with the target flag for debugging, and illustrates copying files from existing images such as nginx to streamline container creation.

CI/CDContainerDevOps
0 likes · 5 min read
Practical Guide to Heterogeneous Image Builds and Multi‑Stage Dockerfile Optimization
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 PracticesContainerDevOps
0 likes · 9 min read
Best Practices for Refactoring Large Dockerfiles to Reduce Size and Improve Maintainability
Efficient Ops
Efficient Ops
Apr 22, 2020 · Cloud Native

How to Build Minimal Docker Images with Short‑Lived Containers and Multi‑Stage Builds

This guide explains how to create short‑lived Docker containers, manage build context efficiently, use .dockerignore, apply multi‑stage builds, avoid unnecessary packages, decouple applications, reduce image layers, sort parameters, and leverage build cache to produce lean, fast‑building images.

ContainerDevOpsDocker
0 likes · 10 min read
How to Build Minimal Docker Images with Short‑Lived Containers and Multi‑Stage Builds
HomeTech
HomeTech
Dec 20, 2019 · Cloud Native

Practical Experience of Containerizing Java Applications: Docker, JVM Tuning, Multi‑Stage Builds, and Operational Tips

This article shares the 2019 cloud‑native migration experience of an e‑commerce team, covering Docker and Kubernetes basics, Java‑Docker compatibility, memory and CPU limits, log collection, JDK version choices, Dockerfile and multi‑stage build practices, health checks, graceful shutdown, and common pitfalls encountered during containerization.

ContainerizationDockerHealth Check
0 likes · 21 min read
Practical Experience of Containerizing Java Applications: Docker, JVM Tuning, Multi‑Stage Builds, and Operational Tips
NetEase Game Operations Platform
NetEase Game Operations Platform
Nov 30, 2019 · Backend Development

Optimizing Docker Build for Go Applications with Multi‑Stage Builds and Cache‑From

This article demonstrates how to shrink Go application Docker images and accelerate CI builds by applying multi‑stage builds, consolidating RUN commands, cleaning up layers, and leveraging Docker's cache‑from feature to reuse previously built layers in GitLab CI pipelines.

AlpineCI/CDDocker
0 likes · 12 min read
Optimizing Docker Build for Go Applications with Multi‑Stage Builds and Cache‑From
360 Tech Engineering
360 Tech Engineering
Apr 8, 2019 · Cloud Native

Front‑end Container Deployment: Lessons Learned, Optimizations, and Multi‑stage Build

This article details a front‑end engineer's journey of containerizing a static‑site project with Docker and Kubernetes, addressing node_modules caching, oversized images, and complex deployment workflows, and presents three optimizations—caching dependencies, shrinking base images, and using multi‑stage builds—that cut image size to 25 MB and halve CI build time.

CI/CDDockerImage Optimization
0 likes · 9 min read
Front‑end Container Deployment: Lessons Learned, Optimizations, and Multi‑stage Build