Skip to content

Commit cf581e7

Browse files
committed
Add devcontainer example for Python and Go
1 parent 2bad183 commit cf581e7

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// README at: https://github.com/devcontainers/templates/tree/main/src/go
2+
{
3+
"name": "Example Devcontainer Go",
4+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
5+
"image": "mcr.microsoft.com/devcontainers/go:1.24-bookworm"
6+
// Features to add to the dev container. More info: https://containers.dev/features.
7+
// "features": {},
8+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
9+
// "forwardPorts": [],
10+
// Use 'postCreateCommand' to run commands after the container is created.
11+
// "postCreateCommand": "",
12+
// Configure tool-specific properties.
13+
// "customizations": {
14+
// "vscode": {
15+
// "extensions": [
16+
// ]
17+
// }
18+
// }
19+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
20+
// "remoteUser": "root"
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
2+
{
3+
"name": "Example Devcontainer Python",
4+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
5+
"image": "mcr.microsoft.com/devcontainers/python:3.12-bullseye"
6+
// Features to add to the dev container. More info: https://containers.dev/features.
7+
// "features": {},
8+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
9+
// "forwardPorts": [],
10+
// Use 'postCreateCommand' to run commands after the container is created.
11+
// "postCreateCommand": "",
12+
// Configure tool-specific properties.
13+
// "customizations": {
14+
// "vscode": {
15+
// "extensions": [
16+
// ]
17+
// }
18+
// }
19+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
20+
// "remoteUser": "root"
21+
}

0 commit comments

Comments
 (0)