forked from getanteon/anteon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
29 lines (21 loc) · 1.13 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
FROM golang:1.17.1
RUN apt update && apt install -y git gcc musl-dev curl iputils-ping telnet && rm -rf /var/lib/apt/lists/*
ENV GOPATH /go
ENV GOBIN /go/bin
WORKDIR /workspace
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.0
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b /usr/bin
RUN go get -v golang.org/x/tools/[email protected]
RUN go get -v github.com/rogpeppe/[email protected]
RUN go get -v github.com/rakyll/[email protected]
RUN go get -v github.com/cweill/[email protected]
RUN go get -v github.com/ramya-rao-a/[email protected]
RUN go get -v github.com/go-delve/delve/cmd/[email protected]
RUN GOBIN=/tmp/ go install github.com/go-delve/delve/cmd/dlv@master && mv /tmp/dlv $GOPATH/bin/dlv-dap
COPY go.mod ./
COPY go.sum ./
RUN go mod download
# Aliases
RUN echo "alias ll='ls -alF'" >> /etc/bash.bashrc
RUN echo "alias hammer-clean='go clean -testcache'" >> /etc/bash.bashrc
RUN echo "alias hammer-test-n-cover='gotest -coverpkg=./... -coverprofile=coverage.out ./... && go tool cover -func coverage.out'" >> /etc/bash.bashrc