fix: add OSVersion arg in Dockerfile.Windows to fix windows 2022 test failure

This commit is contained in:
andyzhangx 2024-08-14 14:20:55 +00:00
parent 7b0d59c6e4
commit a56152caa1
1 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,9 @@
# 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 OSVERSION
ARG ADDON_IMAGE=servercore:${OSVERSION}
ARG BASE_IMAGE=nanoserver:${OSVERSION}
ARG REGISTRY=mcr.microsoft.com/windows
FROM ${REGISTRY}/${ADDON_IMAGE} AS addon