We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c6e79c9 + 5ac8e58 commit 562c32bCopy full SHA for 562c32b
1 file changed
logger/Makefile
@@ -6,9 +6,11 @@ BUILD_IMAGE := $(COMPONENT)-build
6
DEV_IMAGE = $(DEV_REGISTRY)/$(IMAGE)
7
8
build: check-docker
9
- docker build -t $(BUILD_IMAGE) .
10
- docker cp `docker run -d $(BUILD_IMAGE)`:/go/bin/logger image/bin/
+ docker build -t $(BUILD_IMAGE) .
+ @$(eval CID := $(shell docker run -d $(BUILD_IMAGE)))
11
+ docker cp $(CID):/go/bin/logger image/bin/
12
docker build -t $(IMAGE) image
13
+ -docker kill $(CID)
14
rm -rf image/bin/logger
15
16
clean: check-docker check-registry
0 commit comments