mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-04 10:42:55 +00:00
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:
parent
904066f1ec
commit
caf1919217
@ -9,7 +9,10 @@
|
|||||||
"service": "langchain",
|
"service": "langchain",
|
||||||
// The optional 'workspaceFolder' property is the path VS Code should open by default when
|
// 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
|
// 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
|
// Prevent the container from shutting down
|
||||||
"overrideCommand": true,
|
"overrideCommand": true,
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features
|
// Features to add to the dev container. More info: https://containers.dev/features
|
||||||
|
@ -4,8 +4,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
dockerfile: libs/langchain/dev.Dockerfile
|
dockerfile: libs/langchain/dev.Dockerfile
|
||||||
context: ..
|
context: ..
|
||||||
volumes:
|
|
||||||
- .:/workspace
|
|
||||||
networks:
|
networks:
|
||||||
- langchain-network
|
- langchain-network
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user