From d63d00daef7d13ed8ca3a696d38b1b4fcc849918 Mon Sep 17 00:00:00 2001 From: Min Kim <291271447@qq.com> Date: Tue, 10 May 2022 15:47:33 +0800 Subject: [PATCH] Chore: Removed unused dockerfile cmd (#71) * chore: removed unused dockerfile cmd Signed-off-by: yue9944882 <291271447@qq.com> * passing IMAGE_TAG to make command Signed-off-by: yue9944882 <291271447@qq.com> --- Dockerfile | 1 - Makefile | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff0158d8a..d309deec4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,5 @@ ENV USER_UID=10001 # or the codes will use it and cause an error, the container cannot be started. COPY --from=builder /go/src/open-cluster-management.io/placement/placement / COPY --from=builder /go/src/open-cluster-management.io/placement/e2e.test / -RUN microdnf update && microdnf clean all USER ${USER_UID} diff --git a/Makefile b/Makefile index 48273a6bc..9b269a418 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ GO_TEST_PACKAGES :=./pkg/... # $2 - Dockerfile path # $3 - context directory for image build # It will generate target "image-$(1)" for building the image and binding it as a prerequisite to target "images". -$(call build-image,$(IMAGE),$(IMAGE_REGISTRY)/$(IMAGE),./Dockerfile,.) +$(call build-image,$(IMAGE),$(IMAGE_REGISTRY)/$(IMAGE):${IMAGE_TAG},./Dockerfile,.) update: copy-crd