Update .devcontainer/devcontainer.json
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user