Think Twice Before Using COPY --link in Your Docker Builds
A Deep Dive into Docker's COPY --link: When It Helps, When It Hurts, and Why Small Apps Should Be Cautious
Introduction
Docker 25.0 introduced a powerful but often overlooked enhancement: the --link
flag for the COPY
command. This feature is available only when using BuildKit, Docker’s modern build engine, and it can significantly boost your build performance and reduce disk usage—especially in complex projects.
Keep reading with a 7-day free trial
Subscribe to Front-end World to keep reading this post and get 7 days of free access to the full post archives.