Skip to content

Instantly share code, notes, and snippets.

@muhlemmer
Last active October 13, 2021 13:16
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 muhlemmer/a73eacbe2f4532fc42d5bd68b5b1b443 to your computer and use it in GitHub Desktop.
Save muhlemmer/a73eacbe2f4532fc42d5bd68b5b1b443 to your computer and use it in GitHub Desktop.
VScode .devcontainer for golang/go:master
{
"name": "go-master",
"dockerFile": "Dockerfile",
"extensions": [
"golang.go"
],
"settings": {
"go.useLanguageServer": true
},
"postCreateCommand": "go mod download",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
]
}
FROM golang:latest
WORKDIR /master
RUN git clone --depth 1 https://github.com/golang/go.git
WORKDIR /master/go/src
RUN ./make.bash
ENV PATH "/master/go/bin:${PATH}"
RUN echo "PATH=${PATH}" >> /etc/bash.bashrc && echo "${PATH}"
RUN go install golang.org/x/tools/gopls@latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment