minecraft/README.md
Kris Lamoureux 297902a686
Handle SIGTERM to stop Minecraft gracefully
- 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
2024-05-15 03:22:34 -04:00

1.3 KiB

Minecraft Docker Image

This Dockerfile sets up a Minecraft server based on the debian-slim image.

Quick Start

By running the following and building this image, you are agreeing to Minecraft's EULA:

echo "EULA=true" > .env

Build the image using the Makefile:

make build

Optionally, build and run to test it:

make install

Feel free to use docker compose directly to build and test:

docker compose build
docker compose up -d
docker logs -f minecraft-minecraft-1

Copyright (C) 2024 Kris Lamoureux

License: GPL v3

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.