diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..03b01bf --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file