Skip to content

Commit bb3dedc

Browse files
committed
Update .gitpod.Dockerfile
1 parent 82d19cb commit bb3dedc

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.gitpod.Dockerfile

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
FROM gitpod/workspace-full:latest
1+
FROM gitpod/workspace-base:latest
22

3+
USER gitpod
34
ENV GO_VERSION=1.23.0
45

56
# For ref, see: https://github.com/gitpod-io/workspace-images/blob/61df77aad71689504112e1087bb7e26d45a43d10/chunks/lang-go/Dockerfile#L10
67
ENV GOPATH=$HOME/go-packages
78
ENV GOROOT=$HOME/go
89
ENV PATH=$GOROOT/bin:$GOPATH/bin:$PATH
910

10-
RUN curl -fsSL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar xzs && \
11-
go install -v github.com/uudashr/gopkgs/cmd/gopkgs@v2 && \
12-
go install -v github.com/ramya-rao-a/go-outline@latest && \
13-
go install -v github.com/cweill/gotests/gotests@latest && \
14-
go install -v github.com/fatih/gomodifytags@latest && \
15-
go install -v github.com/josharian/impl@latest && \
16-
go install -v github.com/haya14busa/goplay/cmd/goplay@latest && \
17-
go install -v github.com/go-delve/delve/cmd/dlv@latest && \
18-
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest && \
19-
go install -v honnef.co/go/tools/cmd/staticcheck@latest && \
20-
go install -v golang.org/x/tools/gopls@latest && \
21-
printf '%s\n' 'export GOPATH=/workspace/go' \
11+
RUN curl -fsSL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar xzs
12+
RUN go install -v github.com/uudashr/gopkgs/cmd/gopkgs@v2
13+
RUN go install -v github.com/ramya-rao-a/go-outline@latest
14+
RUN go install -v github.com/cweill/gotests/gotests@latest
15+
RUN go install -v github.com/fatih/gomodifytags@latest
16+
RUN go install -v github.com/josharian/impl@latest
17+
RUN go install -v github.com/haya14busa/goplay/cmd/goplay@latest
18+
RUN go install -v github.com/go-delve/delve/cmd/dlv@latest
19+
RUN go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest
20+
RUN go install -v honnef.co/go/tools/cmd/staticcheck@latest
21+
RUN go install -v golang.org/x/tools/gopls@latest
22+
RUN printf '%s\n' 'export GOPATH=/workspace/go' \
2223
'export PATH=$GOPATH/bin:$PATH' > $HOME/.bashrc.d/300-go
2324

2425
RUN sudo apt update && sudo apt install -y universal-ctags tree nkf wamerican

0 commit comments

Comments
 (0)