Motivation:
I have an online API, and for every request I need to make a new docker container and execute the code I receive in the request and then delete the docker container. I have thought about using this image as the standard image for docker in order to keep it lightweight.
Questions:
Is it a good method? Since I am worried about the memory usage this method may take. However, I plan to run at most 5 containers at a time and queue all the other requests.
Second, what other ways are there to securely make an online compiling API. I researched on the web and found this docker method very interesting since it removes any chance of abusing to the server with a malicious code that a person can write!