From 819205ed0315069dfa4236925b3f2ec4615a8fb9 Mon Sep 17 00:00:00 2001 From: Hrishikesh Barman Date: Thu, 6 Jun 2019 18:06:57 +0530 Subject: [PATCH] DOCKERFILE_PATH added to Makefile.common (#5635) * added dockerfile path to Makefile.common Signed-off-by: Hrishikesh Barman --- Makefile.common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index c7f9ea64ff..6b94f83911 100644 --- a/Makefile.common +++ b/Makefile.common @@ -86,6 +86,7 @@ endif PREFIX ?= $(shell pwd) BIN_DIR ?= $(shell pwd) DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) +DOCKERFILE_PATH ?= ./ DOCKER_REPO ?= prom DOCKER_ARCHS ?= amd64 @@ -212,7 +213,7 @@ $(BUILD_DOCKER_ARCHS): common-docker-%: docker build -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" \ --build-arg ARCH="$*" \ --build-arg OS="linux" \ - . + $(DOCKERFILE_PATH) .PHONY: common-docker-publish $(PUBLISH_DOCKER_ARCHS) common-docker-publish: $(PUBLISH_DOCKER_ARCHS)