typo. dockerfile use correct build script

This commit is contained in:
Craig Peterson 2017-09-15 10:22:08 -04:00
parent 63d496b4c7
commit a2827dcb4f
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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)