4 ms·
For everyone running a Docker setup, this is not an option... Docker doesn't support symlinking files outside the build context.
by Rockslide 8y ago
For everyone running a Docker setup, this is not an option... Docker doesn't support symlinking files outside the build context.
- striking 8y agoDocker also has a cache, making dependency installs not usually an issue.
- Rockslide 8y agoWhich works on a totally different level and doesn't help at all in terms of sharing dependency snapshots between different projects.
- striking 8y agoThat is not something I'd want to do. Docker's solution is good enough for almost every build that happens. I can eat the time cost not covered by that solution and not have to worry about bugs stemming from improper copying of dep snapshots.
- colemickens 8y agoThis is soon to be solvable by mounting the cache directory during the build, thankfully: https://github.com/moby/buildkit/pull/442 https://github.com/moby/buildkit/pull/442 ("dockerfile: add run --mount support #442 ")