Use opencv of org.openpnp as dependency which is compatible for java and use
OpenCV.loadLocally();
in the constructor of the class. This will help setup opencv on deployment environment. No need for Docker file