Merge pull request #99067 from vinayakankugoyal/dockerfile3

Use ARG and --build-arg instead of sed for build-image.
This commit is contained in:
Kubernetes Prow Robot
2021-02-13 22:01:04 -08:00
committed by GitHub
2 changed files with 7 additions and 13 deletions

View File

@@ -13,7 +13,9 @@
# limitations under the License.
# This file creates a standard build environment for building Kubernetes
FROM k8s.gcr.io/build-image/kube-cross:KUBE_BUILD_IMAGE_CROSS_TAG
ARG KUBE_BUILD_IMAGE_CROSS_TAG
FROM k8s.gcr.io/build-image/kube-cross:${KUBE_BUILD_IMAGE_CROSS_TAG}
# Mark this as a kube-build container
RUN touch /kube-build-image