If you use a volume for the project directory add the file .yarnrc in the project root with the single line: --modules-folder /node_modules Then you can add modules with yarn by running bash within the container and yarn will use the container's node_modules folder without passing the directory back through the volume.
Comment
Update:
If you use a volume for the project directory add the file .yarnrc in the project root with the single line:
--modules-folder /node_modules
Then you can add modules with yarn by running bash within the container and yarn will use the container's node_modules folder without passing the directory back through the volume.
Replies
Thx!