Thank you for you response Randy.
I was able to make it work by deploying the app into heroku adding graphviz to the installation and storing the output image into GCS to be offered later to the user.
Thanks again.