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