From 2ab0290db7194ab7e325491092ec043b76850afa Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Tue, 13 Oct 2020 18:21:11 -0600 Subject: [PATCH] Makefile: regenerate dockerfiles on `start` Add dockerfiles used by the docker-compose setup as dependencies of the `start` target to keep them updated as there are changes to their dependent files. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d6d86c9..63b759c7 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ PROJECT_DIR := $(dir $(this)) PIPELINE_DIR := $(PROJECT_DIR)/.pipeline BLUBBEROID := https://blubberoid.wikimedia.org DOCKERIZE := /srv/dockerize/bin/dockerize +DOCKERFILES := $(PIPELINE_DIR)/local-python.Dockerfile $(PIPELINE_DIR)/dev-nodejs.Dockerfile DEFAULT_CONTAINERS := web db help: @@ -30,7 +31,7 @@ help: awk 'BEGIN {FS = ":.*?## "}; {printf "%-20s %s\n", $$1, $$2}' .PHONY: help -start: .env ## Start the docker-compose stack +start: .env $(DOCKERFILES) ## Start the docker-compose stack docker-compose up --build --detach ${DEFAULT_CONTAINERS} .PHONY: start