Fix devcontainer workspace and use env (#4302)

This commit is contained in:
Mike Degatano 2023-05-18 15:23:12 -04:00 committed by GitHub
parent 9dd5d89458
commit c5566f40ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,9 @@
{
"name": "Supervisor dev",
"image": "ghcr.io/home-assistant/devcontainer:supervisor",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/supervisor/,type=bind",
"workspaceFolder": "/workspace/supervisor/",
"containerEnv": {
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
},
"appPort": ["9123:8123", "7357:4357"],
"postCreateCommand": "bash devcontainer_bootstrap",
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],