diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8484201..2a068d2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,5 +18,14 @@ ], "settings": {} } - } + }, + "mounts": [ + "source=node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume" + ], + "initializeCommand": "docker volume create node_modules", + "postCreateCommand": [ + "bash", + "-c", + "sudo chown -R vscode:vscode ${containerWorkspaceFolder}/node_modules && npm install" + ] }