Hi,
I'm trying to figure out how to run untrusted code in a Web app : I would like the user to write some code in Python in the front-end, so that he tests his algorithm live. However it is difficult to run any kind of Python sandbox, because we need to import big libraries such as Networkx and NumPy. Thus I was considering running Docker containers for each user, executing the untrusted code inside a container and destroy it after.
So, two questions arise :
-
can this be a good option ? (I read that you guys are doing something similar for PythonAnywhere ?)
-
can this be done for a Web App on Pythonanywhere ? (eg it would require to install docker)
Thanks a lot for your help !