open-consul/build-support/docker/Build-Go.dockerfile

14 lines
372 B
Plaintext
Raw Normal View History

2019-11-08 18:59:32 +00:00
ARG GOLANG_VERSION=1.12.13
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"
2019-10-08 17:42:29 +00:00
RUN GO111MODULE=on go get -u -v ${GOTOOLS} && mkdir -p /consul
WORKDIR /consul