Use ARG and --build-arg instead of sed for build-image.

This commit is contained in:
Vinayak Goyal
2021-02-13 17:10:32 -08:00
parent ad1e2ffab0
commit e05f4a3fac
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