minecraft/Makefile

24 lines
494 B
Makefile
Raw Normal View History

2024-05-17 07:00:34 +00:00
DOCKER_COMPOSE_COMMAND = docker compose -f docker-compose.build.yml
2024-05-17 07:00:34 +00:00
PRUNE_IMAGES = \
localhost/minecraft \
localhost/minecraft-base \
localhost/minecraft-spigot
2024-05-17 07:00:34 +00:00
.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:
2024-05-17 07:00:34 +00:00
docker image rm $(PRUNE_IMAGES) || true
docker builder prune -f