eef352b565
Use a separate `devcontainer` Dockerfile target, this allows to include the `gopls` in the devcontainer so it doesn't have to be installed by the Go vscode extension. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
21 lines
460 B
JSON
21 lines
460 B
JSON
{
|
|
"name": "moby",
|
|
"build": {
|
|
"context": "..",
|
|
"dockerfile": "../Dockerfile",
|
|
"target": "devcontainer"
|
|
},
|
|
"workspaceFolder": "/go/src/github.com/docker/docker",
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/docker/docker,type=bind,consistency=cached",
|
|
|
|
"remoteUser": "root",
|
|
"runArgs": ["--privileged"],
|
|
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"golang.go"
|
|
]
|
|
}
|
|
}
|
|
}
|