Use a Docker host to execute requested code in containers
This app is meant to be run on a throwaway machine, VPS, or hardware-based VM. I am not responsible for any damage, data exposure or loss caused by Docker vulnerability exploits if this app is chosen to be run in a real and mission-critical PC.
This is meant to be used with pcp
, but feel free to use it for any other purposes.
First, install dependencies through PDM:
pdm sync
Start the app with this command:
python -m uvicorn src.main:app --host 0.0.0.0 --forwarded-allow-ips="*"
It is recommended to change *
with your proxy IP.
- POST /
Request body:Response body:{ "lang": "string", "code": "string" }
{ "status": number, "output": "string" }