diff --git a/Dockerfile b/Dockerfile index 6b36bf0..ae17af8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ # build stage -FROM golang:alpine AS build-env +# Using 1.10 because earlier versions of Go cause the following error: +# golang.org/x/crypto (download) +# package math/bits: unrecognized import path "math/bits" (import path does +# not begin with hostname) +FROM golang:1.10-alpine AS build-env RUN apk --no-cache add git ADD * /go/src/app/ RUN go get -v app && go install -v app @@ -12,6 +16,6 @@ COPY keys/ /root/.ssh/ EXPOSE 9999 CMD /usr/bin/zfs_replication_exporter \ -logtostderr \ - -host mom.xinu.tv:22 \ + -host mom.xinu.tv:2222 \ -user localuser \ -addr :9999