mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 01:59:04 +02:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
17 lines
817 B
Docker
17 lines
817 B
Docker
# mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0
|
|
# Using this image as a base for HostProcess containers has a few advantages over using other base images for Windows containers including:
|
|
# - Smaller image size
|
|
# - OS compatibility (works on any Windows version that supports containers)
|
|
|
|
# This image MUST be built with docker buildx build (buildx) command on a Linux system.
|
|
# Ref: https://github.com/microsoft/windows-host-process-containers-base-image
|
|
|
|
# The build context must contain the amd64 binary, named windows_exporter-<version>-amd64.exe
|
|
# like the CI build stages it.
|
|
|
|
ARG BASE="mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0"
|
|
FROM $BASE
|
|
|
|
COPY windows_exporter*-amd64.exe /windows_exporter.exe
|
|
ENTRYPOINT ["windows_exporter.exe"]
|