-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.Dockerfile
24 lines (20 loc) · 1.19 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM gitpod/workspace-base:latest
ENV GO_VERSION=1.22.3
# For ref, see: https://github.com/gitpod-io/workspace-images/blob/61df77aad71689504112e1087bb7e26d45a43d10/chunks/lang-go/Dockerfile#L10
ENV GOPATH=$HOME/go-packages
ENV GOROOT=$HOME/go
ENV PATH=$GOROOT/bin:$GOPATH/bin:$PATH
RUN curl -fsSL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar xzs && \
go install -v github.com/uudashr/gopkgs/cmd/gopkgs@v2 && \
go install -v github.com/ramya-rao-a/go-outline@latest && \
go install -v github.com/cweill/gotests/gotests@latest && \
go install -v github.com/fatih/gomodifytags@latest && \
go install -v github.com/josharian/impl@latest && \
go install -v github.com/haya14busa/goplay/cmd/goplay@latest && \
go install -v github.com/go-delve/delve/cmd/dlv@latest && \
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest && \
go install -v honnef.co/go/tools/cmd/staticcheck@latest && \
go install -v golang.org/x/tools/gopls@latest && \
printf '%s\n' 'export GOPATH=/workspace/go' \
'export PATH=$GOPATH/bin:$PATH' > $HOME/.bashrc.d/300-go
RUN sudo apt update && sudo apt install -y universal-ctags tree nkf