Update build env and add new default commandline.
This commit is contained in:
parent
4bd757cb9d
commit
af0d5e0618
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user