build-docker.sh 269 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 #!/bin/bash set -e -x GO_VER=${GO_VER:-1.7.4} docker run -it -v "${GOPATH}":/gopath -v "$(pwd)":/app -e "GOPATH=/gopath" -w /app golang:$GO_VER sh -c 'CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o influxd ./cmd/influxd' docker build -t influxdb .