Skip to content

Commit 8b9107c

Browse files
committed
container: fix collector
Signed-off-by: Jan-Otto Kröpke <[email protected]>
1 parent 6efefcc commit 8b9107c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
# This image MUST be built with docker buildx build (buildx) command on a Linux system.
77
# Ref: https://github.com/microsoft/windows-host-process-containers-base-image
88

9+
ARG BUILDPLATFORM
10+
ARG TARGETARCH
11+
912
ARG BASE="mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0"
10-
FROM $BASE
1113

12-
ARG TARGETARCH
14+
FROM --platform=${BUILDPLATFORM:-windows/amd64} $BASE
1315

14-
COPY windows_exporter*-$TARGETARCH.exe /windows_exporter.exe
16+
COPY windows_exporter*-${TARGETARCH}.exe /windows_exporter.exe
1517
ENTRYPOINT ["windows_exporter.exe"]

0 commit comments

Comments
 (0)