38 lines
1.2 KiB
JSON
38 lines
1.2 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/go
|
|
{
|
|
"name": "Go",
|
|
// Use bookworm due to
|
|
// (!) The 'moby' option is not supported on Debian 'trixie' because 'moby-cli' and related system packages have been removed from that distribution.
|
|
// (!) To continue, either set the feature option '"moby": false' or use a different base image (for example: 'debian:bookworm' or 'ubuntu-24.04').
|
|
"image": "golang:1.25-bookworm",
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
// For in-docker discovery testing
|
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
|
|
},
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
"forwardPorts": [
|
|
25565
|
|
],
|
|
|
|
containerEnv: {
|
|
"GOROOT": "/usr/local/go"
|
|
},
|
|
|
|
// Configure tool-specific properties.
|
|
"customizations": {
|
|
"jetbrains": {
|
|
"backend": "IntelliJ",
|
|
"plugins": [
|
|
"org.jetbrains.plugins.go"
|
|
]
|
|
},
|
|
"vscode": {
|
|
"extensions": [
|
|
"golang.go"
|
|
]
|
|
}
|
|
}
|
|
}
|