Skip to content

Commit 32ce64d

Browse files
committed
Merge branch 'master' into opencv_contrib
2 parents 2f192fe + d5ac303 commit 32ce64d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM python:3.6
2-
MAINTAINER Josip Janzic <josip.janzic@gmail.com>
1+
FROM python:3.7
2+
MAINTAINER Josip Janzic <josip@jjanzic.com>
33

44
RUN apt-get update && \
55
apt-get install -y \
@@ -16,18 +16,16 @@ RUN apt-get update && \
1616
libjpeg-dev \
1717
libpng-dev \
1818
libtiff-dev \
19-
libjasper-dev \
2019
libavformat-dev \
2120
libpq-dev
2221

2322
RUN pip install numpy
2423

2524
WORKDIR /
26-
ENV OPENCV_VERSION="3.4.1"
25+
ENV OPENCV_VERSION="3.4.2"
2726
RUN wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip \
2827
&& unzip ${OPENCV_VERSION}.zip \
2928
&& rm ${OPENCV_VERSION}.zip
30-
3129
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
3230
&& unzip ${OPENCV_VERSION}.zip \
3331
&& mkdir /opencv-${OPENCV_VERSION}/cmake_binary \
@@ -46,10 +44,11 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
4644
-DBUILD_TESTS=OFF \
4745
-DBUILD_PERF_TESTS=OFF \
4846
-DCMAKE_BUILD_TYPE=RELEASE \
49-
-DCMAKE_INSTALL_PREFIX=$(python3.6 -c "import sys; print(sys.prefix)") \
50-
-DPYTHON_EXECUTABLE=$(which python3.6) \
51-
-DPYTHON_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
52-
-DPYTHON_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. \
47+
-DCMAKE_INSTALL_PREFIX=$(python3.7 -c "import sys; print(sys.prefix)") \
48+
-DPYTHON_EXECUTABLE=$(which python3.7) \
49+
-DPYTHON_INCLUDE_DIR=$(python3.7 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
50+
-DPYTHON_PACKAGES_PATH=$(python3.7 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
51+
.. \
5352
&& make install \
5453
&& rm /${OPENCV_VERSION}.zip \
5554
&& rm -r /opencv-${OPENCV_VERSION}

0 commit comments

Comments
 (0)