File tree 2 files changed +12
-13
lines changed
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 27
27
apt-get -y install --no-install-recommends \
28
28
python${PYTHON_VERSION} \
29
29
python${PYTHON_VERSION}-dev \
30
- $( [ ${PYTHON_VERSION%%.*} -ge 3 ] && echo " python${PYTHON_VERSION}-distutils" ) \
30
+ python${PYTHON_VERSION}-distutils \
31
31
curl \
32
32
wget \
33
33
&& \
@@ -86,17 +86,17 @@ RUN \
86
86
&& \
87
87
pip install numpy && \
88
88
89
- # Install OpenCV
89
+ # Install OpenCV
90
90
wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip -O opencv.zip --progress=bar:force:noscroll --no-check-certificate && \
91
91
unzip -q opencv.zip && \
92
- mv /opencv-${ OPENCV_VERSION} /opencv && \
92
+ mv /opencv-$OPENCV_VERSION /opencv && \
93
93
rm opencv.zip && \
94
94
wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip -O opencv_contrib.zip --progress=bar:force:noscroll --no-check-certificate && \
95
95
unzip -q opencv_contrib.zip && \
96
- mv /opencv_contrib-${ OPENCV_VERSION} /opencv_contrib && \
96
+ mv /opencv_contrib-$OPENCV_VERSION /opencv_contrib && \
97
97
rm opencv_contrib.zip && \
98
98
99
- # Prepare build
99
+ # Prepare build
100
100
mkdir /opencv/build && \
101
101
cd /opencv/build && \
102
102
cmake \
@@ -126,13 +126,13 @@ RUN \
126
126
.. \
127
127
&& \
128
128
129
- # Build, Test and Install
129
+ # Build, Test and Install
130
130
cd /opencv/build && \
131
131
make -j$(nproc) && \
132
132
make install && \
133
133
ldconfig && \
134
134
135
- # cleaning
135
+ # cleaning
136
136
apt-get -y remove \
137
137
unzip \
138
138
cmake \
Original file line number Diff line number Diff line change 47
47
# sysctl -w net.ipv4.ip_forward=1 ; \
48
48
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils && \
49
49
PIP_URL="https://bootstrap.pypa.io/get-pip.py" && \
50
- fi && \
51
50
curl $PIP_URL | python
52
51
53
52
ENV PYTHONPATH="/usr/lib/python${PYTHON_VERSION}/site-packages:/usr/local/lib/python${PYTHON_VERSION}/site-packages"
59
58
echo "$CUDA_PATH/compat" >> /etc/ld.so.conf.d/${CUDA/./-}.conf && \
60
59
ldconfig && \
61
60
62
- # Install all dependencies for OpenCV
61
+ # Install all dependencies for OpenCV
63
62
apt-get -y update -qq --fix-missing && \
64
63
apt-get -y install --no-install-recommends \
65
64
unzip \
99
98
&& \
100
99
pip install numpy && \
101
100
102
- # Install OpenCV
101
+ # Install OpenCV
103
102
wget https://github.com/opencv/opencv/archive/$OPENCV_VERSION.zip -O opencv.zip --progress=bar:force:noscroll && \
104
103
unzip -q opencv.zip && \
105
104
mv /opencv-$OPENCV_VERSION /opencv && \
@@ -109,7 +108,7 @@ RUN \
109
108
mv /opencv_contrib-$OPENCV_VERSION /opencv_contrib && \
110
109
rm opencv_contrib.zip && \
111
110
112
- # Prepare build
111
+ # Prepare build
113
112
mkdir /opencv/build && \
114
113
cd /opencv/build && \
115
114
cmake \
@@ -150,13 +149,13 @@ RUN \
150
149
.. \
151
150
&& \
152
151
153
- # Build, Test and Install
152
+ # Build, Test and Install
154
153
cd /opencv/build && \
155
154
make -j$(nproc) && \
156
155
make install && \
157
156
ldconfig && \
158
157
159
- # cleaning
158
+ # cleaning
160
159
apt-get -y remove \
161
160
unzip \
162
161
cmake \
You can’t perform that action at this time.
0 commit comments