blob: 19684a394c3d5e339cff760106f6dcc9672b84e1 [file] [edit]
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# These arguments come from BUILD_PLATFORMS used in release-tools
ARG ADDON_IMAGE=servercore:1809
ARG BASE_IMAGE=nanoserver:1809
ARG REGISTRY=mcr.microsoft.com/windows
FROM ${REGISTRY}/${ADDON_IMAGE} as addon
FROM ${REGISTRY}/${BASE_IMAGE}
LABEL description="CSI Liveness Probe"
COPY ./bin/livenessprobe.exe /livenessprobe.exe
COPY --from=addon /Windows/System32/netapi32.dll /Windows/System32/netapi32.dll
USER ContainerAdministrator
ENTRYPOINT ["/livenessprobe.exe"]