Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: How to properly share cargo registry with docker containers?
I'd like to share a project repo with a container via a local volume in order to build and run code in it. And I'd like to share cargo's dependency cache, otherwise deps will be redownloaded and rebuilt quite a lot.
Is it ok to share ~/.cargo/registry
for this?
And should I share anything else?
services:
app:
volumes:
- ~/repo:/home/appuser/repo
- ~/.cargo/registry:/home/appuser/.cargo/registry
4 posts - 3 participants
🏷️ rust_feed