-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 614 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/golang-builder AS builder
# Get sql_exporter
ADD . /go/src/github.com/burningalchemist/sql_exporter
WORKDIR /go/src/github.com/burningalchemist/sql_exporter
# Do makefile
RUN make
# Make image and copy build sql_exporter
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
COPY --from=builder /go/src/github.com/burningalchemist/sql_exporter/sql_exporter /bin/sql_exporter
EXPOSE 9399
USER nobody
ENTRYPOINT [ "/bin/sql_exporter" ]