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>
3
3
4
4
RUN apt-get update && \
5
5
apt-get install -y \
@@ -16,18 +16,16 @@ RUN apt-get update && \
16
16
libjpeg-dev \
17
17
libpng-dev \
18
18
libtiff-dev \
19
- libjasper-dev \
20
19
libavformat-dev \
21
20
libpq-dev
22
21
23
22
RUN pip install numpy
24
23
25
24
WORKDIR /
26
- ENV OPENCV_VERSION="3.4.1 "
25
+ ENV OPENCV_VERSION="3.4.2 "
27
26
RUN wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip \
28
27
&& unzip ${OPENCV_VERSION}.zip \
29
28
&& rm ${OPENCV_VERSION}.zip
30
-
31
29
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
32
30
&& unzip ${OPENCV_VERSION}.zip \
33
31
&& mkdir /opencv-${OPENCV_VERSION}/cmake_binary \
@@ -46,10 +44,11 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
46
44
-DBUILD_TESTS=OFF \
47
45
-DBUILD_PERF_TESTS=OFF \
48
46
-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
+ .. \
53
52
&& make install \
54
53
&& rm /${OPENCV_VERSION}.zip \
55
54
&& rm -r /opencv-${OPENCV_VERSION}
0 commit comments