Update build env and add new default commandline.

This commit is contained in:
Bill Thiede 2018-04-29 13:10:33 -07:00
parent 4bd757cb9d
commit af0d5e0618

View File

@ -1,5 +1,9 @@
# build stage # 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 RUN apk --no-cache add git
ADD * /go/src/app/ ADD * /go/src/app/
RUN go get -v app && go install -v app RUN go get -v app && go install -v app
@ -12,6 +16,6 @@ COPY keys/ /root/.ssh/
EXPOSE 9999 EXPOSE 9999
CMD /usr/bin/zfs_replication_exporter \ CMD /usr/bin/zfs_replication_exporter \
-logtostderr \ -logtostderr \
-host mom.xinu.tv:22 \ -host mom.xinu.tv:2222 \
-user localuser \ -user localuser \
-addr :9999 -addr :9999