Default to a non-root user

This commit is contained in:
Chuck Lantz
2019-08-05 22:47:53 +00:00
parent 5049f5084e
commit 8e8bdf032a
3 changed files with 36 additions and 13 deletions

View File

@@ -1,12 +1,15 @@
{
"name": "Node.js Sample",
"dockerFile": "Dockerfile",
"appPort": 3000,
"extensions": [
"dbaeumer.vscode-eslint"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"postCreateCommand": "yarn install"
"name": "Node.js Sample",
"dockerFile": "Dockerfile",
"appPort": 3000,
"extensions": [
"dbaeumer.vscode-eslint"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"postCreateCommand": "yarn install",
// Comment out the next line to run as root instead. Linux users, update the next line and
// Dockerfile with your user's UID/GID if not 1000.
"runArgs": [ "-u", "1000" ]
}