diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..06e76ab --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,3 @@ +FROM mcr.microsoft.com/devcontainers/go:1.25-bookworm + +USER vscode diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..fbf0c09 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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 + } + } + } + } +}