Last active
August 4, 2021 19:28
-
-
Save HenriBeck/487f182eccbea74b26751b15dfa8cdeb to your computer and use it in GitHub Desktop.
Go DevContainer Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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", | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
RUN go install -v github.com/go-delve/delve/cmd/[email protected] | |
RUN go install -v github.com/ramya-rao-a/[email protected] | |
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