1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

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 FROM golang:1.9 AS build-env
WORKDIR /go/src/github.com/StackExchange/dnscontrol WORKDIR /go/src/github.com/StackExchange/dnscontrol
ADD . . ADD . .
RUN go install . RUN go run build/build.go
RUN cp dnscontrol-Linux /go/bin/dnscontrol
RUN dnscontrol version RUN dnscontrol version
FROM ubuntu:xenial FROM ubuntu:xenial

View File

@ -34,7 +34,7 @@ func versionString() string {
if SHA != "" { if SHA != "" {
version = fmt.Sprintf("%s (%s)", Version, SHA) version = fmt.Sprintf("%s (%s)", Version, SHA)
} else { } 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 != "" { if BuildTime != "" {
i, err := strconv.ParseInt(BuildTime, 10, 64) i, err := strconv.ParseInt(BuildTime, 10, 64)