codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
75 stars 15 forks source link

add docker volume for pnpm-store #476

Closed lihebi closed 1 year ago

lihebi commented 1 year ago

Following up #475, add a docker volume pnpm-store, which serves two purposes:

  1. Without it, pnpm install will throw an error. We had to use pnpm config set store-dir ~/pnpm to bypass the error, but this led to unusable pnpm add/remove afterward. Ref: https://github.com/pnpm/pnpm/issues/3952#issuecomment-1262136483
  2. This volume is mounted to all service containers and will cache and speed up pnpm install and pnpm add/remove