diff --git a/Dockerfile b/Dockerfile index 31f46389d..407e70a9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM golang:1.9 AS build-env WORKDIR /go/src/github.com/StackExchange/dnscontrol ADD . . -RUN go install . +RUN go run build/build.go +RUN cp dnscontrol-Linux /go/bin/dnscontrol RUN dnscontrol version FROM ubuntu:xenial diff --git a/main.go b/main.go index 37f99c847..d68257a85 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ func versionString() string { if SHA != "" { version = fmt.Sprintf("%s (%s)", Version, SHA) } else { - version = fmt.Sprintf("%s-dev", Version) //no SHA. '0.x.y-dev' indicates it is run fromm source without build script. + version = fmt.Sprintf("%s-dev", Version) //no SHA. '0.x.y-dev' indicates it is run from source without build script. } if BuildTime != "" { i, err := strconv.ParseInt(BuildTime, 10, 64)