I would like to set up a server that can receive source code directly, compile/interpret it and execute it.
The code could be C#, Java, C++, C, Javascript, PHP...
There will obviously be security concerns, I would like to know if you have any recommendations to prevent the server from being compromised?
From what I look on the internet, Docker seems to be a good solution. Is that correct?
I would like each code to be independent, so if malicious code destroys it's own virtual machine, it does not matter.
To explain more in detail, I think of a game of programming, the players will write their codes, locally on their machine and send them in an arena to compete for example in 1 vs 1 with, in between, the engine Game.
The idea would be to have 3 programs, for a game in 1 against 1 (2 players and the arena) the information exchanged between each of the programs would be characters strings I would also like to the player program to be compiled on a server (in the vm docker for example).
I would like the code to run on the server side so that each player has the same computing power.