docker: improve Rust dependency caching in CI to avoid rebuilding #6169
Labels
A-devops
Area: Pipelines, CI/CD and Dockerfiles
C-design
Category: Software design work
C-enhancement
Category: This is an improvement
I-heavy
Problems with excessive memory, disk, or CPU usage
P-Medium ⚡
S-needs-triage
Status: A bug report needs triage
Milestone
Motivation
When files are copied into the Dockerfile with the
COPY
command, the cache can get invalidated. We could improve this by using the--link
option which creates more independent layers to avoid rebuilding when not neededSpecifications
Documentation: https://docs.docker.com/engine/reference/builder/#copy---link
The text was updated successfully, but these errors were encountered: