Skip to content

Commit

Permalink
Dockerfile; debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingFathead committed Oct 12, 2024
1 parent d9e9766 commit 47ad712
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ WORKDIR /opt/opencv_build

# Download OpenCV and OpenCV_contrib
RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
unzip opencv.zip && \
unzip opencv_contrib.zip && \
mv opencv-${OPENCV_VERSION} opencv && \
mv opencv_contrib-${OPENCV_VERSION} opencv_contrib
RUN wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
RUN unzip opencv.zip
RUN unzip opencv_contrib.zip
RUN rm opencv.zip
RUN rm opencv_contrib.zip
RUN mv opencv-${OPENCV_VERSION} opencv
RUN mv opencv_contrib-${OPENCV_VERSION} opencv_contrib

# Create build directory
WORKDIR /opt/opencv_build/opencv/build
Expand All @@ -94,7 +96,10 @@ RUN cmake -D CMAKE_BUILD_TYPE=RELEASE \
..

# Build OpenCV
RUN make -j$(nproc) && make install && ldconfig
RUN make -j$(nproc)
RUN make install
RUN rm -rf /opt/opencv_build
RUN ldconfig

RUN python3 -m pip install --upgrade pip

Expand Down

0 comments on commit 47ad712

Please sign in to comment.