diff --git a/Makefile b/Makefile index 4daa0c7..ea67ba0 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,22 @@ ALL_DOCKERFILES := $(wildcard dockerfiles/Dockerfile-*) ALL_BUILD_TARGETS := $(subst dockerfiles/Dockerfile-,build-,$(ALL_DOCKERFILES)) all: build build: $(ALL_BUILD_TARGETS) clean: # Discard existing volumes docker-compose down --volumes -run: +run: build # Runs containers in the foreground docker-compose up build-%: dockerfiles/Dockerfile-% @echo "" @echo "+----------------------------------------------------+" @printf '| %-50s |\n' "Building $(subst build-,,$@)" @echo "+----------------------------------------------------+" @echo "" docker build -f $< -t $(subst build-,,$@) $(BUILD_CONTEXT) ..