smartctl_exporter/Dockerfile

17 lines
399 B
Text
Raw Normal View History

ARG ARCH="amd64"
ARG OS="linux"
FROM ${ARCH}/alpine:3
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
RUN apk add 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" ]