Skip to content

Commit d2fd2ad

Browse files
authored
Merge pull request #1 from ptqa/master
Update to python 3.6 and opencv 3.2.0
2 parents e057092 + 6e827e8 commit d2fd2ad

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.5
1+
FROM python:3.6
22
MAINTAINER Josip Janzic <josip.janzic@gmail.com>
33

44
RUN apt-get update && \
@@ -23,10 +23,10 @@ RUN apt-get update && \
2323
RUN pip install numpy
2424

2525
WORKDIR /
26-
RUN wget https://github.com/Itseez/opencv/archive/3.1.0.zip \
27-
&& unzip 3.1.0.zip \
28-
&& mkdir /opencv-3.1.0/cmake_binary \
29-
&& cd /opencv-3.1.0/cmake_binary \
26+
RUN wget https://github.com/Itseez/opencv/archive/3.2.0.zip \
27+
&& unzip 3.2.0.zip \
28+
&& mkdir /opencv-3.2.0/cmake_binary \
29+
&& cd /opencv-3.2.0/cmake_binary \
3030
&& cmake -DBUILD_TIFF=ON \
3131
-DBUILD_opencv_java=OFF \
3232
-DWITH_CUDA=OFF \
@@ -40,12 +40,12 @@ RUN wget https://github.com/Itseez/opencv/archive/3.1.0.zip \
4040
-DBUILD_TESTS=OFF \
4141
-DBUILD_PERF_TESTS=OFF \
4242
-DCMAKE_BUILD_TYPE=RELEASE \
43-
-DCMAKE_INSTALL_PREFIX=$(python3.5 -c "import sys; print(sys.prefix)") \
44-
-DPYTHON_EXECUTABLE=$(which python3.5) \
45-
-DPYTHON_INCLUDE_DIR=$(python3.5 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
46-
-DPYTHON_PACKAGES_PATH=$(python3.5 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. \
43+
-DCMAKE_INSTALL_PREFIX=$(python3.6 -c "import sys; print(sys.prefix)") \
44+
-DPYTHON_EXECUTABLE=$(which python3.6) \
45+
-DPYTHON_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
46+
-DPYTHON_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. \
4747
&& make install \
48-
&& rm /3.1.0.zip \
49-
&& rm -r /opencv-3.1.0
48+
&& rm /3.2.0.zip \
49+
&& rm -r /opencv-3.2.0
5050

5151
RUN pip install flake8 pep8 --upgrade

0 commit comments

Comments
 (0)