Skip to content

Commit

Permalink
Update image and tag parameter for Dockerfile.Windows
Browse files Browse the repository at this point in the history
Dockerfile.Windows has two container images, servercore and nanoserver,
use seperate parameter for them.
  • Loading branch information
jingxu97 committed Sep 3, 2020
1 parent 74cddc9 commit b330335
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile.Windows
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG BASE_IMAGE=servercore
ARG BASE_IMAGE_TAG=1809
ARG CORE_IMAGE=servercore
ARG CORE_IMAGE_TAG=1809
ARG BUILD_IMAGE=nanoserver
ARG BUILD_IMAGE_TAG=1809
ARG REGISTRY=mcr.microsoft.com/windows

FROM ${REGISTRY}/${BASE_IMAGE}:${BASE_IMAGE_TAG} as core
FROM mcr.microsoft.com/windows/nanoserver:${BASE_IMAGE_TAG}
FROM ${REGISTRY}/${CORE_IMAGE}:${CORE_IMAGE_TAG} as core
FROM ${REGISTRY}/${BUILD_IMAGE}:${BUILD_IMAGE_TAG}
LABEL description="CSI Node driver registrar"

COPY ./bin/csi-node-driver-registrar.exe /csi-node-driver-registrar.exe
Expand Down

0 comments on commit b330335

Please sign in to comment.