Rendering html with jsdom as http API.
Accepts POST request with the following JSON:
{
"url": "", // URL of the site
"html": "", // HTML of the site
"cookies": "" // Cookies to be set in the browser TODO implement
"user_agent": "" // User-Agent used by the browser
"render_wait": "" // how much time to spend on rendering
}
sudo docker build . -t jsrunner:0.1
sudo docker run -p 3000:3000 -d --memory="512mb" jsrunner:0.1
npx npm-check-updates -u
npm install
New version must be downloaded from their repo.