Last active
October 13, 2021 13:16
-
-
Save muhlemmer/a73eacbe2f4532fc42d5bd68b5b1b443 to your computer and use it in GitHub Desktop.
VScode .devcontainer for golang/go:master
This file contains 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-master", | |
"dockerFile": "Dockerfile", | |
"extensions": [ | |
"golang.go" | |
], | |
"settings": { | |
"go.useLanguageServer": true | |
}, | |
"postCreateCommand": "go mod download", | |
"runArgs": [ | |
"--cap-add=SYS_PTRACE", | |
"--security-opt", | |
"seccomp=unconfined", | |
] | |
} |
This file contains 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: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