-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathdevcontainer.json
More file actions
32 lines (28 loc) · 800 Bytes
/
Copy pathdevcontainer.json
File metadata and controls
32 lines (28 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name": "Python 3",
"context": "..",
"dockerFile": "Dockerfile",
"remoteUser": "vscode",
"customizations": {
"env": {
"PYTHONPATH": "/workspace:${PYTHONPATH}"
},
"vscode": {
"extensions": [
"ms-python.python",
"mhutchie.git-graph",
"vscode-icons-team.vscode-icons"
]
}
},
// Add the following lines to enable GPU
"runArgs": [
"--gpus", "all" // Explicitly target GPU 1
],
// Ensures NVIDIA runtime is used
"hostRequirements": {
"gpu": true
}
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "bash .devcontainer/setup.sh"
}