Using a docker container for dependencies
I've quickly implemented from a project using this currently on my fork where you can find a contribution guide. Its the smallest image out there doing the same at 86MB and you should be able to build the container locally with different versions of node after pulling from the image repository.
In Node v4.2.1 I'm getting child depreciation warnings which is failing command line tests and we would have to work out how to compile the drawingtotext binary as I can't find much documentation other than making. This might be a separate container which generates the package and hosts it on github.
Let me know your thoughts!
Fork: https://github.com/sidhuko/textract Github: https://github.com/sidhuko/docker-textract Docker hub: https://hub.docker.com/r/sidhuko/textract/