smartctl_exporter/Dockerfile
Ben Kochie b63f56e391
Add smartmontools to container image (#51)
Switch to using Alpine container and install smartmontools so the
exporter can use the smartctl binary.

Signed-off-by: SuperQ <superq@gmail.com>
2022-08-08 15:44:02 +02:00

16 lines
403 B
Docker

ARG ARCH="amd64"
ARG OS="linux"
FROM ${ARCH}/alpine:3
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
RUN apk install smartmontools
ARG ARCH="amd64"
ARG OS="linux"
COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter
COPY smartctl_exporter.yaml /etc/smartctl_exporter.yaml
EXPOSE 9633
USER nobody
ENTRYPOINT [ "/bin/smartctl_exporter" ]