mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-03 18:35:32 +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
|
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
|
||||||
|
|
2
main.go
2
main.go
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue