Just run the either the Java or bedrock server as a docker container. There’s good community-maintained containers out there.