add devcontainer configs

This commit is contained in:
Stephan Auerhahn
2023-05-20 11:40:30 +00:00
parent 02e6bc3eb0
commit 8198509cfc
2 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "StableStudio dev",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
"forwardPorts": [3000],
// avoid git "dubious ownership" errors, which break yarn
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"postAttachCommand": "yarn",
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"vscode.typescript-language-features"
]
}
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {
}
}
}