mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-16 01:33:07 +01:00
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>
This commit is contained in:
parent
14778c90ea
commit
0472e35e77
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
FROM ${ARCH}/alpine:3
|
||||
FROM --platform ${OS}/${ARCH} alpine:3
|
||||
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
||||
|
||||
RUN apk add smartmontools
|
||||
|
|
Loading…
Reference in a new issue