We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b6110 commit 411ce99Copy full SHA for 411ce99
1 file changed
Dockerfile
@@ -1,6 +1,14 @@
1
-FROM prom/busybox:glibc
+FROM quay.io/prometheus/golang-builder as builder
2
3
-ADD sql_exporter /bin/sql_exporter
+ADD . /go/src/github.com/justwatchcom/sql_exporter
4
+WORKDIR /go/src/github.com/justwatchcom/sql_exporter
5
-EXPOSE 9237
6
-ENTRYPOINT [ "/bin/sql_exporter" ]
+RUN make
7
+
8
+FROM quay.io/prometheus/busybox:glibc
9
+MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
10
11
+COPY --from=builder /go/src/github.com/justwatchcom/sql_exporter/sql_exporter /bin/sql_exporter
12
13
+EXPOSE 9237
14
+ENTRYPOINT [ "/bin/sql_exporter" ]
0 commit comments