2022-09-04 13:58:58 +00:00
|
|
|
// Docu: https://containers.dev/implementors/json_reference/
|
|
|
|
{
|
|
|
|
"name": "Python 3",
|
|
|
|
"build": {
|
|
|
|
"dockerfile": "Dockerfile",
|
|
|
|
"context": "..",
|
|
|
|
//Update 'VARIANT' to pick a Python version: 3, 3.10, ...
|
|
|
|
"args": {
|
2022-10-31 21:11:55 +00:00
|
|
|
"VARIANT": "3.11"
|
2022-09-04 13:58:58 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
|
|
"extensions": [
|
|
|
|
"ms-python.python"
|
|
|
|
],
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
|
|
"postCreateCommand":
|
|
|
|
"python -m pip install --upgrade pip; pip install -r requirements-dev.txt; pip install -r requirements.txt",
|
|
|
|
"postStartCommand": "echo 'Happy coding'"
|
|
|
|
// Comment out to connect as root instead.
|
|
|
|
// "remoteUser": "vscode"
|
|
|
|
}
|