Files
go/.devcontainer/devcontainer.json
2020-08-11 19:54:26 +00:00

33 lines
1.0 KiB
JSON

// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.134.0/containers/go
{
"name": "Go",
"build": {
"dockerfile": "Dockerfile",
// Update the VARIANT arg to pick a version of Go
"args": { "VARIANT": "1" }
},
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"go.useGoProxyToCheckForToolUpdates": false,
"go.gopath": "/go",
"go.useLanguageServer": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [9000],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
// Comment out to connect as root instead.
"remoteUser": "vscode"
}