Docker can make server setup repeatable. Choose a trusted Minecraft server image, persist the world directory in a volume, set the required environment options, and publish the game port. Keep the image current and back up the persistent world data before upgrades.
MineCluster
Setting Up a Minecraft Server in Docker
A short guide to running Minecraft in a container.