Skip to content

Commit 01ba1ea

Browse files
authored
Create devcontainer.json
1 parent 9191c21 commit 01ba1ea

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
7+
"onCreateCommand": "pip3 install --user -r requirements.txt",
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"ms-toolsai.jupyter",
12+
"ms-python.python"
13+
]
14+
}
15+
}
16+
17+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18+
// "forwardPorts": [],
19+
20+
// Use 'postCreateCommand' to run commands after the container is created.
21+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
22+
23+
}

0 commit comments

Comments
 (0)