Skip to content

docker: improve Rust dependency caching in CI to avoid rebuilding #6169

@gustavovalverde

Description

@gustavovalverde

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 needed

Specifications

Documentation: https://docs.docker.com/engine/reference/builder/#copy---link

Metadata

Metadata

Labels

A-devopsArea: Pipelines, CI/CD and DockerfilesC-designCategory: Software design workC-enhancementCategory: This is an improvementI-heavyProblems with excessive memory, disk, or CPU usageP-Low ❄️S-needs-triageStatus: A bug report needs triage

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions