modus icon indicating copy to clipboard operation
modus copied to clipboard

Expose buildkit's cache mount functionality?

Open maowtm opened this issue 3 years ago • 1 comments

This allows adding a mounted directory that persists between build runs. For example, we can mount target to such a cache, and cargo would not have to re-compile all the dependencies on each image build. (Currently this is achieved in our own Modusfile with a slight hack).

maowtm avatar Feb 03 '22 00:02 maowtm

Proposal: ::cached(path) (path can be relative or absolute, resolved based on cwd). Dir will initially just be empty.

maowtm avatar Mar 14 '22 00:03 maowtm