Skip to content

Commit 96e665e

Browse files
authored
Merge pull request #3 from james-cockayne/main
Added devcontainer
2 parents 4ffb818 + 1164cc2 commit 96e665e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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:2-3.12-trixie",
7+
"features": {
8+
"ghcr.io/devcontainers-extra/features/poetry:2": {}
9+
},
10+
"runArgs": ["--gpus", "all"],
11+
12+
// Features to add to the dev container. More info: https://containers.dev/features.
13+
// "features": {},
14+
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
// "forwardPorts": [],
17+
18+
// Use 'postCreateCommand' to run commands after the container is created.
19+
"postCreateCommand": "poetry install"
20+
21+
// Configure tool-specific properties.
22+
// "customizations": {},
23+
24+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
25+
// "remoteUser": "root"
26+
}

0 commit comments

Comments
 (0)