Update .devcontainer/devcontainer.json

This commit is contained in:
2025-01-30 11:30:10 +01:00
parent cfe4a3c4a3
commit d2d4ac584f

View File

@@ -11,7 +11,7 @@
"NODE_EXTRA_CA_CERTS": "/usr/local/share/ca-certificates/sophos.crt"
},
// Add bash_history
"mounts": [
"mounts": [
"source=projectname-bashhistory,target=/commandhistory,type=volume"
],
// Configure tool-specific properties.
@@ -24,11 +24,14 @@
"ms-azuretools.vscode-docker"
]
}
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [3000, 27017],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
"postCreateCommand": {
"Fix Volume Permissions": "sudo chown -R $(whoami): /commandhistory"
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}