fix: devcontainer to use volume to store the workspace (#32266)

should resolve the file sharing issue for users on macOS.
This commit is contained in:
Mason Daugherty 2025-07-27 23:43:06 -04:00 committed by GitHub
parent 904066f1ec
commit caf1919217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,10 @@
"service": "langchain",
// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/workspace",
"workspaceFolder": "/workspaces/langchain",
"mounts": [
"source=langchain-workspaces,target=/workspaces/langchain,type=volume"
],
// Prevent the container from shutting down
"overrideCommand": true,
// Features to add to the dev container. More info: https://containers.dev/features

View File

@ -4,8 +4,7 @@ services:
build:
dockerfile: libs/langchain/dev.Dockerfile
context: ..
volumes:
- .:/workspace
networks:
- langchain-network