Default to non-root user, use latest Python 3 definition as base

This commit is contained in:
Chuck Lantz
2019-08-06 01:49:08 +00:00
parent 9e2d16b521
commit 8fc4867135
4 changed files with 49 additions and 31 deletions

View File

@@ -2,11 +2,19 @@
"name": "Python Sample",
"dockerFile": "Dockerfile",
"appPort": 9000,
"context": "..",
"extensions": [
"ms-python.python"
],
"settings": {
"python.pythonPath": "/usr/local/bin/python"
}
"python.pythonPath": "/usr/local/bin/python",
"python.linting.pylintEnabled": true,
"python.linting.pylintPath": "/usr/local/bin/pylint",
"python.linting.enabled": true
},
"postCreateCommand": "sudo pip install -r requirements.txt",
// Comment out the next line to run as root instead. Linux users,
// update Dockerfile with your user's UID/GID if not 1000.
"runArgs": [ "-u", "vscode" ]
}
}