forked from getanteon/anteon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
30 lines (23 loc) · 1.19 KB
/
Dockerfile.dev
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
27
28
29
30
FROM golang:1.18.1
WORKDIR /workspace
COPY go.mod ./
COPY go.sum ./
ENV GOPATH /go
ENV GOBIN /go/bin
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV SHELL /bin/zsh
RUN apt update && apt install -y git zsh vim fzf locales gcc musl-dev curl iputils-ping telnet graphviz bc jq && rm -rf /var/lib/apt/lists/*
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2
COPY .devcontainer/.zshrc /root/.zshrc
RUN go install -v golang.org/x/tools/[email protected]
RUN go install -v github.com/rogpeppe/[email protected]
RUN go install -v github.com/rakyll/[email protected]
RUN go install -v github.com/ramya-rao-a/[email protected]
RUN go install -v github.com/go-delve/delve/cmd/[email protected]
RUN go install -v golang.org/x/perf/cmd/[email protected]
RUN go mod download
CMD [ "zsh" ]