I am trying to create a Dockerfile on jetson with l4t-base and create a new image with opencv but when i try to build an image I encounter a linking problem and I can only create a docker when I change the command from RUN to CMD, but then it builds every time, which is a problem.
I am trying to build it using this:
RUN curl -L https://github.com/opencv/opencv/archive/4.1.0.zip -o opencv-4.1.0.zip
RUN curl -L https://github.com/opencv/opencv_contrib/archive/4.1.0.zip -o opencv_contrib-4.1.0.zip
RUN unzip opencv-4.1.0.zip && unzip opencv_contrib-4.1.0.zip
RUN cd opencv-4.1.0/ && mkdir release && cd release/ && cmake -D WITH_CUDA=ON
-D CMAKE_INSTALL_PREFIX=/usr/local …