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
This commit is contained in:
2024-05-15 03:22:34 -04:00
parent 381bd9eeff
commit 297902a686
6 changed files with 99 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ RUN groupadd -g 1000 minecraft && \
# Install scripting dependencies
RUN apt-get update && \
apt-get install -y curl gpg jq screen && \
apt-get install -y curl gpg jq procps screen strace && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*