2022-06-16 10:08:20 +02:00
|
|
|
ARG ARCH="amd64"
|
|
|
|
ARG OS="linux"
|
2023-08-17 22:58:22 +02:00
|
|
|
FROM --platform=${OS}/${ARCH} alpine:3
|
|
|
|
ARG ARCH="amd64"
|
|
|
|
ARG OS="linux"
|
2022-06-16 10:08:20 +02:00
|
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
|
|
|
|
2022-08-08 17:03:53 +02:00
|
|
|
RUN apk add smartmontools
|
2022-08-08 15:44:02 +02:00
|
|
|
|
2022-06-16 10:08:20 +02:00
|
|
|
COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter
|
|
|
|
|
|
|
|
EXPOSE 9633
|
|
|
|
USER nobody
|
|
|
|
ENTRYPOINT [ "/bin/smartctl_exporter" ]
|