Skip to content

Instantly share code, notes, and snippets.

@HenriBeck
Last active August 4, 2021 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HenriBeck/487f182eccbea74b26751b15dfa8cdeb to your computer and use it in GitHub Desktop.
Save HenriBeck/487f182eccbea74b26751b15dfa8cdeb to your computer and use it in GitHub Desktop.
Go DevContainer Setup
{
"name": "Go DevContainer",
"build": {
"dockerfile": "Dockerfile"
},
"workspaceMount": "source=${localWorkspaceFolder},target=/project,type=bind,consistency=cached",
"workspaceFolder": "/project",
"extensions": [
"golang.go",
"editorconfig.editorconfig",
"eamodio.gitlens",
"ms-azuretools.vscode-docker",
]
}
FROM golang:1.16-buster AS base
RUN apt-get update
RUN apt-get install software-properties-common git build-essential curl unzip nano -y
# Install global CLI tools
RUN go install -v golang.org/x/tools/gopls@v0.7.1
RUN go install -v github.com/go-delve/delve/cmd/dlv@v1.6.1
RUN go install -v github.com/ramya-rao-a/go-outline@v0.0.0-20200117021646-2a048b4510eb
RUN go install -v github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest
WORKDIR /project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment