Skip to content

Commit d060d5e

Browse files
committed
Bump opencv version to 3.4.0
1 parent 00cd066 commit d060d5e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ RUN apt-get update && \
2323
RUN pip install numpy
2424

2525
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 \
3031
&& cmake -DBUILD_TIFF=ON \
3132
-DBUILD_opencv_java=OFF \
3233
-DWITH_CUDA=OFF \
@@ -45,5 +46,5 @@ RUN wget https://github.com/opencv/opencv/archive/3.3.0.zip \
4546
-DPYTHON_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
4647
-DPYTHON_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. \
4748
&& 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}

0 commit comments

Comments
 (0)