2022-12-23 08:32:53 -06:00
|
|
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
|
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
2019-04-16 18:19:04 -07:00
|
|
|
{
|
2020-08-11 20:27:14 +00:00
|
|
|
"name": "Python 3",
|
2022-12-23 08:32:53 -06:00
|
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
|
|
|
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
|
|
|
|
|
|
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
|
|
|
// "features": {},
|
|
|
|
|
|
2022-05-17 12:41:41 -07:00
|
|
|
// Configure tool-specific properties.
|
|
|
|
|
"customizations": {
|
|
|
|
|
// Configure properties specific to VS Code.
|
|
|
|
|
"vscode": {
|
2022-12-23 08:32:53 -06:00
|
|
|
"settings": {},
|
2022-05-17 12:41:41 -07:00
|
|
|
"extensions": [
|
2022-12-23 08:32:53 -06:00
|
|
|
"streetsidesoftware.code-spell-checker"
|
2022-05-17 12:41:41 -07:00
|
|
|
]
|
|
|
|
|
}
|
2019-08-06 01:49:08 +00:00
|
|
|
},
|
2022-12-23 08:32:53 -06:00
|
|
|
|
2020-03-31 19:23:03 +00:00
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
2021-01-21 16:32:47 +00:00
|
|
|
// "forwardPorts": [9000],
|
2019-08-26 14:01:56 -07:00
|
|
|
|
2022-12-23 08:32:53 -06:00
|
|
|
// Use 'portsAttributes' to set default properties for specific forwarded ports.
|
|
|
|
|
// More info: https://containers.dev/implementors/json_reference/#port-attributes
|
2021-03-16 15:40:01 +00:00
|
|
|
"portsAttributes": {
|
|
|
|
|
"9000": {
|
|
|
|
|
"label": "Hello Remote World",
|
|
|
|
|
"onAutoForward": "notify"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2021-04-16 20:16:19 +00:00
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2022-12-23 08:32:53 -06:00
|
|
|
"postCreateCommand": "pip3 install -r requirements.txt"
|
2021-04-16 20:16:19 +00:00
|
|
|
|
2022-12-23 08:32:53 -06:00
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
|
|
|
// "remoteUser": "root"
|
2019-08-06 01:49:08 +00:00
|
|
|
}
|