Alan (@al_ps) said on another topic thread “Alternatively, you might be able to manually install it on a Native Environment as part of a build script, if you have prebuilt binaries to download”
Is what he said true? What am I missing? How can I go about installing tesseract onto my web service on render?
This is a serious problem and I refuse to believe going the docker route is the only solution.
Thanks,
Native environments have common tools and utilities included, however “Tesseract-OCR” isn’t one of them. The permissions of Native Environments are also restricted, preventing apt-get and OS-level package installs.
What I said in another post is true. If you have a prebuilt binary, you can use the Build Command to add that to the environment and reference it directly, as customers already do with things like Chrome, dotnet, etc.
I have to admit, I’m not familiar with Tesseract, so it’s possible a self-contained binary may not be an option. OS-level package installs won’t be possible with dpkg -i, due to the permission-levels mentioned above. dpkg -x would allow you to extract the contents, which you might be able to reference directly, however, depending on any other dependencies or assumed file/library locations, that may or may not work.
I see you say Docker isn’t an option, but it gives you a lot more control over the app’s environment to be able to set it up exactly as you require, installing simply with apt-get, without having to come up with complex workarounds to Native Environment permissions.