Skip to content

Commit

Permalink
Merge pull request prometheus-community#150 from jfcoz/fix/docker_arm64
Browse files Browse the repository at this point in the history
fix Dockerfile for multi-arch
  • Loading branch information
NiceGuyIT committed Aug 26, 2023
2 parents 75c76b3 + 380f1e9 commit 7840616
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG ARCH="amd64"
ARG OS="linux"
FROM alpine:3
FROM --platform=${OS}/${ARCH} alpine:3
ARG ARCH="amd64"
ARG OS="linux"
LABEL maintainer="The Prometheus Authors <[email protected]>"

RUN apk add smartmontools

ARG ARCH="amd64"
ARG OS="linux"
COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter

EXPOSE 9633
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.

# Needs to be defined before including Makefile.common to auto-generate targets
DOCKER_ARCHS ?= amd64
DOCKER_ARCHS ?= amd64 arm64
DOCKER_REPO ?= prometheuscommunity

include Makefile.common
Expand Down

0 comments on commit 7840616

Please sign in to comment.