From ad0c3ba012bce4fea4dd7aee98af890411bdcebb Mon Sep 17 00:00:00 2001 From: Qingchuan Hao Date: Thu, 13 Aug 2020 09:48:47 +0800 Subject: [PATCH] Make windows dockerfile info configurable --- Dockerfile.Windows | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile.Windows b/Dockerfile.Windows index fb956815..c4ffd699 100644 --- a/Dockerfile.Windows +++ b/Dockerfile.Windows @@ -1,6 +1,9 @@ -FROM mcr.microsoft.com/windows/servercore:1809 as core +ARG BASE_IMAGE=servercore +ARG BASE_IMAGE_TAG=1809 +ARG REGISTRY=mcr.microsoft.com/windows -FROM mcr.microsoft.com/windows/nanoserver:1809 +FROM ${REGISTRY}/${BASE_IMAGE}:${BASE_IMAGE_TAG} as core +FROM mcr.microsoft.com/windows/nanoserver:${BASE_IMAGE_TAG} LABEL description="CSI Liveness Probe" COPY ./bin/livenessprobe.exe /livenessprobe.exe