build: cp Dockerfile in docker-build target (#5925)

Signed-off-by: Lionello Lunesu <lio+git@lunesu.com>
This commit is contained in:
Lio李歐 2023-02-15 10:15:30 -08:00 committed by GitHub
parent 52f1c64e7d
commit ad623eb0d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,6 @@ endif
mkdir build/docker/$${arch}; \
curl -L $(GITHUB)/v$(VERSION)/coredns_$(VERSION)_linux_$${arch}.tgz > build/docker/$${arch}/coredns.tgz && \
( cd build/docker/$${arch}; tar xf coredns.tgz && rm coredns.tgz ); \
cp Dockerfile build/docker/$${arch} ; \
done
.PHONY: docker-build
@ -83,12 +82,16 @@ ifeq ($(DOCKER),)
else
docker version
for arch in $(LINUX_ARCH); do \
cp Dockerfile build/docker/$${arch} ; \
DOCKER_BUILDKIT=1 docker build --platform=$${arch} -t $(DOCKER_IMAGE_NAME):$${arch}-$(VERSION) build/docker/$${arch} ;\
done
endif
.PHONY: docker-push
docker-push:
ifeq ($(VERSION),)
$(error "Please specify a version use. Use VERSION=<version>")
endif
ifeq ($(DOCKER),)
$(error "Please specify Docker registry to use. Use DOCKER=coredns for releases")
else