Skip to content

Commit

Permalink
Add Dockerfile for exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
spkesan committed Jan 7, 2020
1 parent 4db3507 commit 600eb6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:alpine AS builder
ADD . $GOPATH/src/github.com/citrusleaf/aerospike-prometheus-exporter
WORKDIR $GOPATH/src/github.com/citrusleaf/aerospike-prometheus-exporter
RUN apk add git \
&& go get ./... \
&& go build -o aerospike-prometheus-exporter . \
&& cp aerospike-prometheus-exporter /aerospike-prometheus-exporter

FROM golang:alpine
COPY --from=builder /aerospike-prometheus-exporter /usr/bin/aerospike-prometheus-exporter
CMD ["-h localhost", "-p 3000", "-b :9145", "-tags agent,aerospike"]
ENTRYPOINT ["aerospike-prometheus-exporter"]

0 comments on commit 600eb6c

Please sign in to comment.