2021-08-16 17:21:16 +00:00
|
|
|
ARG GOLANG_VERSION=1.16.7
|
2018-06-08 14:20:54 +00:00
|
|
|
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"
|
|
|
|
|
2021-06-30 16:36:02 +00:00
|
|
|
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
|
2018-06-08 14:20:54 +00:00
|
|
|
|
2019-04-01 14:55:48 +00:00
|
|
|
WORKDIR /consul
|