Skip to content

Commit d5ac303

Browse files
committed
Update to python 3.7 and opencv 3.4.2
1 parent 7cc40a2 commit d5ac303

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dockerfile

Lines changed: 8 additions & 8 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,14 +16,13 @@ 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/archive/${OPENCV_VERSION}.zip \
2827
&& unzip ${OPENCV_VERSION}.zip \
2928
&& mkdir /opencv-${OPENCV_VERSION}/cmake_binary \
@@ -41,10 +40,11 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
4140
-DBUILD_TESTS=OFF \
4241
-DBUILD_PERF_TESTS=OFF \
4342
-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+
.. \
4848
&& make install \
4949
&& rm /${OPENCV_VERSION}.zip \
5050
&& rm -r /opencv-${OPENCV_VERSION}

0 commit comments

Comments
 (0)