Front-end World

Front-end World

Share this post

Front-end World
Front-end World
Think Twice Before Using COPY --link in Your Docker Builds

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

Kristiyan Velkov's avatar
Kristiyan Velkov
May 20, 2025
∙ Paid

Share this post

Front-end World
Front-end World
Think Twice Before Using COPY --link in Your Docker Builds
1
Share

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.

Already a paid subscriber? Sign in
© 2025 © 2025 Kristiyan Velkov. All rights reserved.
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share