-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 879 Bytes
/
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
25
26
# image for golang development environment
# to use with vscode remote-container with go tools installed
FROM golang:1.17.5
# install zsh and oh-my-zsh
RUN apt-get update \
&& apt-get install -y zsh \
&& sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
# clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Install go tools use by golang.go extension
RUN go get \
# to run "debug test"
github.com/go-delve/delve/cmd/[email protected] \
# to run "Go: Add import"
github.com/uudashr/gopkgs/v2/cmd/[email protected] \
github.com/josharian/[email protected] \
github.com/davidrjenni/reftools/cmd/fillstruct@latest \
github.com/ramya-rao-a/go-outline@latest
# gopls updates very frequently separate for faster build
RUN go get golang.org/x/tools/[email protected]