Hacker News new | past | comments | ask | show | jobs | submit login

Which becomes a problem using containers in a monorepo.



How does that make it problematic?


Can’t hard link across mount point, so either copy to the container or install inside the container (both negate pnpm’s benefit).

Our workaround is to put the global cache in the project so we can mount it alongside the code in the same mountpoint.


Thanks, I wouldn’t have thought of sharing npm packages like that.

I would argue building different containers from a shared node_modules is inherently dangerous anyway. Sounds like your ”workaround” is in fact pretty much the optimal setup for quickly performing multiple similar builds.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: