smartctl_exporter/Dockerfile
SuperQ 0472e35e77
Fix up multi-platform container builds
Use the `--platform` flag on `FROM` to build with the correct platform.

Signed-off-by: SuperQ <superq@gmail.com>
2022-10-03 17:44:44 +02:00

16 lines
416 B
Docker

ARG ARCH="amd64"
ARG OS="linux"
FROM --platform ${OS}/${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" ]