feat: Server library cleanup on paper install (#4046)

This commit is contained in:
Harrison Black
2026-05-18 21:59:23 +10:00
committed by GitHub
parent fd823d6040
commit c95b638faa
2 changed files with 26 additions and 6 deletions
+6
View File
@@ -22,6 +22,12 @@ docker run -d --pull=always \
-p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server
```
## Clean server libraries
By default, supported server types remove stale server libraries during installation by setting `CLEAN_SERVER_LIBRARIES` to `true`. Set `CLEAN_SERVER_LIBRARIES` to `false` to disable this cleanup if it causes unexpected behavior.
Currently, library cleanup is supported by `TYPE=PAPER`. Other server jar types are not yet supported.
## Running as alternate user/group ID
By default, the container will switch to and run the Minecraft server as user ID 1000 and group ID 1000; however, that can be changed by setting the environment variables `UID` and `GID`.