diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f0d4423..4a51a19 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,10 +1,10 @@ { "name": "Go", "dockerFile": "Dockerfile", - "appPort": 9000, - "extensions": [ - "ms-vscode.go" - ], + + // Specifies a list of ports the container should publish + "appPort": [9000], + "runArgs": [ // Comment out the next line to run as root instead. Linux users, // update Dockerfile with your user's UID/GID if not 1000. @@ -12,9 +12,20 @@ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], - "settings": { + + // Use 'settings' to set *default* container specific settings.json values on container create. + // You can edit these settings after create using File > Preferences > Settings > Remote. + "settings": { + "terminal.integrated.shell.linux": "/bin/bash", "go.gopath": "/go", "go.inferGopath": true, "go.useLanguageServer": true - } + }, + + // Uncomment the next line to run commands after the container is created. + // "postCreateCommand": "go version", + + "extensions": [ + "ms-vscode.go" + ] } \ No newline at end of file