See Docker + Java + OpenCV, no opencv_java342 in java.library.path - Stack Overflow
It has the Dockerfile you need