2024-05-18 03:58:46 +00:00
|
|
|
DOCKER_COMPOSE_BUILD = docker compose -f docker-compose.build.yml build
|
|
|
|
DOCKER_COMPOSE_UP = docker compose up -d
|
2024-05-15 07:22:34 +00:00
|
|
|
|
2024-05-18 03:58:46 +00:00
|
|
|
PRUNE_IMAGES = \
|
|
|
|
localhost/minecraft:latest \
|
|
|
|
localhost/minecraft:latest-spigot \
|
|
|
|
localhost/minecraft:latest-craftbukkit \
|
|
|
|
localhost/minecraft-jre:latest \
|
|
|
|
localhost/minecraft-jdk:latest
|
2024-05-15 07:22:34 +00:00
|
|
|
|
2024-05-18 03:58:46 +00:00
|
|
|
.PHONY: all clean craftbukkit default install jdk jre spigot vanilla
|
|
|
|
default: vanilla
|
|
|
|
all: vanilla spigot craftbukkit
|
|
|
|
|
|
|
|
jre:
|
|
|
|
$(DOCKER_COMPOSE_BUILD) minecraft-jre
|
|
|
|
|
|
|
|
jdk:
|
|
|
|
$(DOCKER_COMPOSE_BUILD) minecraft-jdk
|
|
|
|
|
|
|
|
vanilla: jre
|
|
|
|
$(DOCKER_COMPOSE_BUILD) minecraft-vanilla
|
|
|
|
|
|
|
|
spigot: jre jdk
|
|
|
|
$(DOCKER_COMPOSE_BUILD) minecraft-spigot
|
|
|
|
|
|
|
|
craftbukkit: jre jdk
|
|
|
|
$(DOCKER_COMPOSE_BUILD) minecraft-craftbukkit
|
|
|
|
|
|
|
|
install:
|
|
|
|
$(DOCKER_COMPOSE_UP)
|
2024-05-15 07:22:34 +00:00
|
|
|
|
|
|
|
clean:
|
2024-05-18 03:58:46 +00:00
|
|
|
docker image rm $(PRUNE_IMAGES) || true
|
2024-05-15 07:22:34 +00:00
|
|
|
docker builder prune -f
|