2018-10-11 11:21:53 +00:00
|
|
|
ARG GOLANG_VERSION=1.11.1
|
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/... \
|
|
|
|
github.com/magiconair/vendorfmt/cmd/vendorfmt \
|
|
|
|
github.com/mitchellh/gox \
|
|
|
|
golang.org/x/tools/cmd/cover \
|
|
|
|
golang.org/x/tools/cmd/stringer \
|
|
|
|
github.com/axw/gocov/gocov \
|
|
|
|
gopkg.in/matm/v1/gocov-html"
|
|
|
|
|
|
|
|
RUN go get -u -v ${GOTOOLS} && mkdir -p ${GOPATH}/src/github.com/hashicorp/consul
|
|
|
|
|
|
|
|
WORKDIR $GOPATH/src/github.com/hashicorp/consul
|
|
|
|
|