diff --git a/Dockerfile b/Dockerfile index 41446f6..2dd6c70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG ARCH="amd64" ARG OS="linux" -FROM alpine:3 +FROM --platform=${OS}/${ARCH} alpine:3 RUN apk --no-cache add freeipmi LABEL maintainer="The Prometheus Authors " diff --git a/Makefile b/Makefile index 41853fa..a6ff618 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,7 @@ .PHONY: all all: precheck style unused build test -#DOCKER_ARCHS ?= amd64 arm64 -DOCKER_ARCHS ?= amd64 +DOCKER_ARCHS ?= amd64 arm64 DOCKER_IMAGE_NAME ?= ipmi-exporter DOCKER_REPO ?= prometheuscommunity diff --git a/README.md b/README.md index 905a1a6..773ada7 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ executable in `$GOPATH/bin`: You can build a Docker container with the included `docker` make target: make promu - promu crossbuild -p linux/amd64 + promu crossbuild -p linux/amd64 -p linux/arm64 make docker This will not even require Go tooling on the host. See the included [docker