We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efefcc commit 8b9107cCopy full SHA for 8b9107c
Dockerfile
@@ -6,10 +6,12 @@
6
# This image MUST be built with docker buildx build (buildx) command on a Linux system.
7
# Ref: https://github.com/microsoft/windows-host-process-containers-base-image
8
9
+ARG BUILDPLATFORM
10
+ARG TARGETARCH
11
+
12
ARG BASE="mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0"
-FROM $BASE
13
-ARG TARGETARCH
14
+FROM --platform=${BUILDPLATFORM:-windows/amd64} $BASE
15
-COPY windows_exporter*-$TARGETARCH.exe /windows_exporter.exe
16
+COPY windows_exporter*-${TARGETARCH}.exe /windows_exporter.exe
17
ENTRYPOINT ["windows_exporter.exe"]
0 commit comments