# build stage FROM golang:alpine AS build-env RUN apk --no-cache add git RUN go get -v xinu.tv/zfs_replication_exporter # final stage FROM alpine COPY --from=build-env /go/bin/zfs_replication_exporter /usr/bin/ COPY keys/ /root/.ssh/ EXPOSE 9999 CMD /usr/bin/zfs_replication_exporter \ -logtostderr \ -host mom.xinu.tv:22 \ -user localuser \ -addr :9999