You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Thanks to Josip Janzic <josip.janzic@gmail.com> for Opencv installation Dockerfile
4
+
# Thanks to Josip Janzic <josip.janzic@gmail.com> for Opencv installation and Cayetano Benavent <cayetano.benavent@geographica.gs> for the GDAL installation
5
+
6
+
ENV ROOTDIR /usr/local/
7
+
ENV OPENCV_VERSION="3.4.1"
8
+
ENV GDAL_VERSION="2.2.4"
5
9
6
-
RUN apt-get update && apt-get install -y software-properties-common python-software-properties
7
-
RUN add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
8
10
RUN apt-get update && \
9
-
apt-get install -y \
11
+
apt-get install -y --no-install-recommends \
10
12
build-essential \
11
13
cmake \
12
14
g++ \
13
15
python3 \
14
16
python3-dev \
15
17
git \
16
-
wget \
17
-
unzip \
18
18
yasm \
19
19
pkg-config \
20
20
libswscale-dev \
@@ -30,57 +30,76 @@ RUN apt-get update && \
30
30
libexiv2-dev \
31
31
libboost-python1.58.0 \
32
32
libboost-python-dev \
33
-
python-all-dev \
34
-
gdal-bin=2.1.3+dfsg-1~xenial2 \
35
-
libgdal-dev=2.1.3+dfsg-1~xenial2 \
36
-
python3-gdal=2.1.3+dfsg-1~xenial2 \
37
-
&& \
33
+
python-all-dev
34
+
35
+
WORKDIR $ROOTDIR/
38
36
39
-
wget https://bootstrap.pypa.io/get-pip.py && \
40
-
python3 get-pip.py && \
41
-
rm get-pip.py \
42
-
&& \
43
37
44
-
pip --no-cache-dir install \
45
-
numpy \
46
-
py3exiv2
47
38
48
-
WORKDIR /
49
-
ENV OPENCV_VERSION="3.4.1"
50
-
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
0 commit comments