mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-09 08:57:37 +08:00
typo. dockerfile use correct build script
This commit is contained in:
parent
63d496b4c7
commit
a2827dcb4f
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
2
main.go
2
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)
|
||||
|
|
Loading…
Reference in a new issue