I am setting up a docker image (python debian) that would run a gunicorn wsgi server that can compile codes and return the compilation results. Other langauges are working fine with the testcases, but I'm getting errors with javascript code (note that the JS code is being compiled/interpreted through node.js and everytime I try to get an input through stdin I get the following error:
Error: ENXIO: no such device or address, open '/dev/tty'
I used prompt libraries as well as worked with reading lines but all of these methods led to the error of not being able to find /dev/tty. When I tried running node in the docker CLI however, inputs seems to work fine. Is there any workaround with this?
I am currently running JS codes by saving them as scripts and then calling a python subprocess to run node {filename}.js. Any help would be appreciated, thanks!