DOCKER_COMPOSE_COMMAND = docker compose -f docker-compose.build.yml PRUNE_IMAGES = \ localhost/minecraft \ localhost/minecraft-base \ localhost/minecraft-spigot .PHONY: all base vanilla spigot default: vanilla all: vanilla spigot base: $(DOCKER_COMPOSE_COMMAND) build minecraft-base vanilla: base $(DOCKER_COMPOSE_COMMAND) build minecraft-vanilla spigot: base $(DOCKER_COMPOSE_COMMAND) build minecraft-spigot clean: docker image rm $(PRUNE_IMAGES) || true docker builder prune -f