Skip to content

Commit

Permalink
fix Dockerfile for multi-arch
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcoz committed Aug 17, 2023
1 parent 75c76b3 commit 1c07e38
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 <prometheus-developers@googlegroups.com>"

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 1c07e38

Please sign in to comment.