mirror of https://github.com/status-im/consul.git
22 lines
567 B
Docker
22 lines
567 B
Docker
ARG GOLANG_VERSION=1.17.2
|
|
FROM golang:${GOLANG_VERSION}
|
|
|
|
ARG GOTOOLS="github.com/elazarl/go-bindata-assetfs/... \
|
|
github.com/hashicorp/go-bindata/... \
|
|
golang.org/x/tools/cmd/cover \
|
|
golang.org/x/tools/cmd/stringer \
|
|
github.com/axw/gocov/gocov \
|
|
gopkg.in/matm/v1/gocov-html"
|
|
|
|
RUN mkdir -p .gotools && \
|
|
cd .gotools && \
|
|
for tool in ${GOTOOLS}; do \
|
|
echo "=== TOOL: ${tool}" ; \
|
|
rm -rf go.mod go.sum ; \
|
|
go mod init consul-tools ; \
|
|
go get -v "${tool}" ; \
|
|
done && \
|
|
rm -rf go.mod go.sum
|
|
|
|
WORKDIR /consul
|