Skip to content

Commit 039d4f7

Browse files
committed
chore: update/enahnce devcontainer setup
1 parent e9c2d7b commit 039d4f7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.devcontainer/devcontainer.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
{
44
"name": "Go",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm"
6+
"image": "mcr.microsoft.com/devcontainers/go:1",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
9-
// "features": {},
9+
"features": {
10+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
11+
},
1012

1113
// Use 'forwardPorts' to make a list of ports inside the container available locally.
1214
// "forwardPorts": [],
@@ -15,7 +17,13 @@
1517
// "postCreateCommand": "go version",
1618

1719
// Configure tool-specific properties.
18-
// "customizations": {},
20+
"customizations": {
21+
"vscode": {
22+
"extensions": [
23+
"golang.Go"
24+
]
25+
}
26+
}
1927

2028
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
2129
// "remoteUser": "root"

0 commit comments

Comments
 (0)