| 1 |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
| 2 |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/python-3 |
| 3 |
{ |
| 4 |
"name": "Python 3", |
| 5 |
"build": { |
| 6 |
"dockerfile": "Dockerfile", |
| 7 |
"context": "..", |
| 8 |
"args": { |
| 9 |
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.11 |
| 10 |
"VARIANT": "3.11", |
| 11 |
// Options |
| 12 |
"INSTALL_NODE": "false", |
| 13 |
"NODE_VERSION": "lts/*" |
| 14 |
} |
| 15 |
}, |
| 16 |
"customizations": { |
| 17 |
"vscode": { |
| 18 |
"settings": { |
| 19 |
"terminal.integrated.shell.linux": "/bin/bash", |
| 20 |
"python.pythonPath": "/usr/local/bin/python", |
| 21 |
"python.languageServer": "Pylance", |
| 22 |
"[python]": { |
| 23 |
"editor.defaultFormatter": "charliermarsh.ruff" |
| 24 |
} |
| 25 |
}, |
| 26 |
"extensions": [ |
| 27 |
"ms-python.python", |
| 28 |
"ms-python.vscode-pylance", |
| 29 |
"charliermarsh.ruff" |
| 30 |
] |
| 31 |
} |
| 32 |
}, |
| 33 |
// Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 34 |
// "forwardPorts": [], |
| 35 |
// Use 'postCreateCommand' to run commands after the container is created. |
| 36 |
"postCreateCommand": "script/environment.sh", |
| 37 |
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 38 |
"remoteUser": "vscode" |
| 39 |
} |