Kris Lamoureux
297902a686
- Set up SIGTERM signal trap to invoke stop_server - Ensure proper process exit and cleanup after the server stops - Create makefile to build, clean, and install builds
18 lines
290 B
Makefile
18 lines
290 B
Makefile
CONTAINER = minecraft-minecraft-1
|
|
|
|
.PHONY: default build clean install
|
|
default: build
|
|
|
|
build:
|
|
docker compose build
|
|
|
|
clean:
|
|
rm -f screenlog.0
|
|
docker compose down --rmi all
|
|
docker builder prune -f
|
|
|
|
install: build
|
|
touch screenlog.0
|
|
docker compose up -d && \
|
|
docker logs -f $(CONTAINER)
|