A reproducible minecraft server targeting VPS machines.
- Compressed image is 102 MiB.
- Stripped JRE with jlink.
- With Pufferfish server for Minecraft 1.20.4. Also provides optimized settings.
- Requires docker 20.10.10 or newer. Relevant thread.
Usage:
$CPULIMIT
: Set CPU usage cap. Uses limitcpu.$JAVAOPTS
: Set extra JVM options.- Mount your server data folder at
/data
.
Build docker image:
nix-build docker-server.nix
Build, load, run:
docker load < $(nix-build docker-server.nix)
docker run -v ./data:/data -e "CPULIMIT=200" -p 25565:25565 pufferfish-1.20.4:1.0.0