From 2b26b46f3c8fb85e93ca302e1bf2891a1d6afe12 Mon Sep 17 00:00:00 2001 From: Jayasimha Raghavan Date: Thu, 14 Sep 2023 11:01:36 -0700 Subject: [PATCH] Moved copying of Dockerfile to a new target --- build/templates/Makefile.extend-docker.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/templates/Makefile.extend-docker.template b/build/templates/Makefile.extend-docker.template index c122e7414..90770699a 100644 --- a/build/templates/Makefile.extend-docker.template +++ b/build/templates/Makefile.extend-docker.template @@ -25,6 +25,10 @@ CUSTOM_DIRECTORY = custom CUSTOM_DOCKER_NAME ?= my-awesome-docker CUSTOM_DOCKER_VERSION ?= 0.1.0 +copy: + @echo "Copying Docker file" + @cp $(AWESOME_DIRECTORY)/build/templates/Dockerfile.template Dockerfile + pre-build: @echo "Preparing To create custom Docker build" if [ ! -d "$(ACTION_DIRECTORY)" ]; then\ @@ -43,7 +47,6 @@ pre-build: @mkdir -p $(CUSTOM_DIRECTORY) @cp -Rf $(ACTION_DIRECTORY) $(CUSTOM_DIRECTORY)/actions @cp -Rf $(RUNBOOK_DIRECTORY) $(CUSTOM_DIRECTORY)/runbooks - @cp $(AWESOME_DIRECTORY)/build/templates/Dockerfile.template Dockerfile build: pre-build