|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/go |
3 | 3 | { |
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:dev-1-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/air-verse/air@v1.62.0" |
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" |
| 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 | + "containerEnv": { |
| 14 | + "HTTP_PROXY": "${localEnv:HTTP_PROXY:}", |
| 15 | + "HTTPS_PROXY": "${localEnv:HTTPS_PROXY:}", |
| 16 | + "NO_PROXY": "${localEnv:NO_PROXY:}", |
| 17 | + "http_proxy": "${localEnv:http_proxy:}", |
| 18 | + "https_proxy": "${localEnv:https_proxy:}", |
| 19 | + "no_proxy": "${localEnv:no_proxy:}" |
| 20 | + }, |
| 21 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 22 | + "postCreateCommand": "/bin/bash .devcontainer/post-create.sh" |
| 23 | + |
| 24 | + // Configure tool-specific properties. |
| 25 | + // "customizations": {}, |
| 26 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 27 | + // "remoteUser": "root" |
19 | 28 | } |
0 commit comments