Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alxrem committed Jan 10, 2018
1 parent 413e25d commit 000f37e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:alpine AS builder
WORKDIR /go/src/gitlab.com/alxrem/prometheus-logstash-exporter
COPY vendor/ ./vendor/
COPY main.go ./
RUN apk -U add binutils && go build && strip prometheus-logstash-exporter

FROM alpine
WORKDIR /
COPY --from=builder /go/src/gitlab.com/alxrem/prometheus-logstash-exporter/prometheus-logstash-exporter /
EXPOSE 9304
ENTRYPOINT ["/prometheus-logstash-exporter"]

0 comments on commit 000f37e

Please sign in to comment.