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:
@@ -0,0 +1,3 @@
|
|||||||
|
FROM mcr.microsoft.com/devcontainers/go:1.25-bookworm
|
||||||
|
|
||||||
|
USER vscode
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user