11// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22// README at: https://github.com/devcontainers/templates/tree/main/src/go
33{
4- "name" : " Go" ,
5- // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6- "image" : " mcr.microsoft.com/devcontainers/go:1-1.23-bullseye" ,
7- // Features to add to the dev container. More info: https://containers.dev/features.
8- // "features": {},
9- // Use 'forwardPorts' to make a list of ports inside the container available locally.
10- "forwardPorts" : [
11- 8181
12- ],
13- // Use 'postCreateCommand' to run commands after the container is created.
14- "postCreateCommand" : " go install github.com/cosmtrek/air@latest"
15- // Configure tool-specific properties.
16- // "customizations": {},
17- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
18- // "remoteUser": "root"
19- }
4+ "name" : " Go" ,
5+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+ "image" : " mcr.microsoft.com/devcontainers/go:1.25-trixie" ,
7+ // Features to add to the dev container. More info: https://containers.dev/features.
8+ // "features": {},
9+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
10+ "forwardPorts" : [
11+ 8181
12+ ],
13+ "runArgs" : [
14+ " --env" ,
15+ " HTTP_PROXY=${env:http_proxy:-}" ,
16+ " --env" ,
17+ " HTTPS_PROXY=${env:https_proxy:-}" ,
18+ " --env" ,
19+ " NO_PROXY=${env:no_proxy:-}" ,
20+ " --env" ,
21+ " http_proxy=${env:http_proxy:-}" ,
22+ " --env" ,
23+ " https_proxy=${env:https_proxy:-}" ,
24+ " --env" ,
25+ " no_proxy=${env:no_proxy:-}"
26+ ],
27+ // Use 'postCreateCommand' to run commands after the container is created.
28+ "postCreateCommand" : " go install github.com/air-verse/air@latest"
29+ // Configure tool-specific properties.
30+ // "customizations": {},
31+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
32+ // "remoteUser": "root"
33+ }
0 commit comments