Update devcontainer configuration with features and settings (#32)

* Update devcontainer configuration with features and settings

* Add devcontainer Dockerfile

* Comment why node

* \n
This commit is contained in:
Francesco Renzi
2025-11-26 17:07:35 +00:00
committed by GitHub
parent cec89c5b7b
commit fe39658434
2 changed files with 36 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/go:1.25-bookworm
USER vscode
+33
View File
@@ -0,0 +1,33 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/sshd:1": "latest",
"ghcr.io/devcontainers/features/github-cli:1": {},
// Node is here only to support Copilot extension
"ghcr.io/devcontainers/features/node:1": {}
},
"hostRequirements": {
"cpus": 8,
"memory": "16gb"
},
"customizations": {
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go",
"github.copilot"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"gopls": {
"formatting.gofumpt": true
}
}
}
}
}