You could probably do this running the server in a docker container (I've dockerised my server in an alpine linux based container, albeit running on Debian), but not sure the RPi would offer enough processing power for much of a grid/race length?
Cheers..
Ian