File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 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,14 +16,13 @@ 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/archive/${OPENCV_VERSION}.zip \
28
27
&& unzip ${OPENCV_VERSION}.zip \
29
28
&& mkdir /opencv-${OPENCV_VERSION}/cmake_binary \
@@ -41,10 +40,11 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
41
40
-DBUILD_TESTS=OFF \
42
41
-DBUILD_PERF_TESTS=OFF \
43
42
-DCMAKE_BUILD_TYPE=RELEASE \
44
- -DCMAKE_INSTALL_PREFIX=$(python3.6 -c "import sys; print(sys.prefix)" ) \
45
- -DPYTHON_EXECUTABLE=$(which python3.6) \
46
- -DPYTHON_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())" ) \
47
- -DPYTHON_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" ) .. \
43
+ -DCMAKE_INSTALL_PREFIX=$(python3.7 -c "import sys; print(sys.prefix)" ) \
44
+ -DPYTHON_EXECUTABLE=$(which python3.7) \
45
+ -DPYTHON_INCLUDE_DIR=$(python3.7 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())" ) \
46
+ -DPYTHON_PACKAGES_PATH=$(python3.7 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" ) \
47
+ .. \
48
48
&& make install \
49
49
&& rm /${OPENCV_VERSION}.zip \
50
50
&& rm -r /opencv-${OPENCV_VERSION}
You can’t perform that action at this time.
0 commit comments