File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ RUN apt-get update && \
23
23
RUN pip install numpy
24
24
25
25
WORKDIR /
26
- RUN wget https://github.com/opencv/opencv/archive/3.3.0.zip \
27
- && unzip 3.3.0.zip \
28
- && mkdir /opencv-3.3.0/cmake_binary \
29
- && cd /opencv-3.3.0/cmake_binary \
26
+ ENV OPENCV_VERSION="3.4.0"
27
+ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
28
+ && unzip ${OPENCV_VERSION}.zip \
29
+ && mkdir /opencv-${OPENCV_VERSION}/cmake_binary \
30
+ && cd /opencv-${OPENCV_VERSION}/cmake_binary \
30
31
&& cmake -DBUILD_TIFF=ON \
31
32
-DBUILD_opencv_java=OFF \
32
33
-DWITH_CUDA=OFF \
@@ -45,5 +46,5 @@ RUN wget https://github.com/opencv/opencv/archive/3.3.0.zip \
45
46
-DPYTHON_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())" ) \
46
47
-DPYTHON_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" ) .. \
47
48
&& make install \
48
- && rm /3.3.0 .zip \
49
- && rm -r /opencv-3.3.0
49
+ && rm /${OPENCV_VERSION} .zip \
50
+ && rm -r /opencv-${OPENCV_VERSION}
You can’t perform that action at this time.
0 commit comments