Skip to content

Commit 1ece635

Browse files
committed
update
1 parent f57c9fe commit 1ece635

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

cpu/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN \
2727
apt-get -y install --no-install-recommends \
2828
python${PYTHON_VERSION} \
2929
python${PYTHON_VERSION}-dev \
30-
$( [ ${PYTHON_VERSION%%.*} -ge 3 ] && echo "python${PYTHON_VERSION}-distutils" ) \
30+
python${PYTHON_VERSION}-distutils \
3131
curl \
3232
wget \
3333
&& \
@@ -86,17 +86,17 @@ RUN \
8686
&& \
8787
pip install numpy && \
8888

89-
# Install OpenCV
89+
# Install OpenCV
9090
wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip -O opencv.zip --progress=bar:force:noscroll --no-check-certificate && \
9191
unzip -q opencv.zip && \
92-
mv /opencv-${OPENCV_VERSION} /opencv && \
92+
mv /opencv-$OPENCV_VERSION /opencv && \
9393
rm opencv.zip && \
9494
wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip -O opencv_contrib.zip --progress=bar:force:noscroll --no-check-certificate && \
9595
unzip -q opencv_contrib.zip && \
96-
mv /opencv_contrib-${OPENCV_VERSION} /opencv_contrib && \
96+
mv /opencv_contrib-$OPENCV_VERSION /opencv_contrib && \
9797
rm opencv_contrib.zip && \
9898

99-
# Prepare build
99+
# Prepare build
100100
mkdir /opencv/build && \
101101
cd /opencv/build && \
102102
cmake \
@@ -126,13 +126,13 @@ RUN \
126126
.. \
127127
&& \
128128

129-
# Build, Test and Install
129+
# Build, Test and Install
130130
cd /opencv/build && \
131131
make -j$(nproc) && \
132132
make install && \
133133
ldconfig && \
134134

135-
# cleaning
135+
# cleaning
136136
apt-get -y remove \
137137
unzip \
138138
cmake \

gpu/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ RUN \
4747
# sysctl -w net.ipv4.ip_forward=1 ; \
4848
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils && \
4949
PIP_URL="https://bootstrap.pypa.io/get-pip.py" && \
50-
fi && \
5150
curl $PIP_URL | python
5251

5352
ENV PYTHONPATH="/usr/lib/python${PYTHON_VERSION}/site-packages:/usr/local/lib/python${PYTHON_VERSION}/site-packages"
@@ -59,7 +58,7 @@ RUN \
5958
echo "$CUDA_PATH/compat" >> /etc/ld.so.conf.d/${CUDA/./-}.conf && \
6059
ldconfig && \
6160

62-
# Install all dependencies for OpenCV
61+
# Install all dependencies for OpenCV
6362
apt-get -y update -qq --fix-missing && \
6463
apt-get -y install --no-install-recommends \
6564
unzip \
@@ -99,7 +98,7 @@ RUN \
9998
&& \
10099
pip install numpy && \
101100

102-
# Install OpenCV
101+
# Install OpenCV
103102
wget https://github.com/opencv/opencv/archive/$OPENCV_VERSION.zip -O opencv.zip --progress=bar:force:noscroll && \
104103
unzip -q opencv.zip && \
105104
mv /opencv-$OPENCV_VERSION /opencv && \
@@ -109,7 +108,7 @@ RUN \
109108
mv /opencv_contrib-$OPENCV_VERSION /opencv_contrib && \
110109
rm opencv_contrib.zip && \
111110

112-
# Prepare build
111+
# Prepare build
113112
mkdir /opencv/build && \
114113
cd /opencv/build && \
115114
cmake \
@@ -150,13 +149,13 @@ RUN \
150149
.. \
151150
&& \
152151

153-
# Build, Test and Install
152+
# Build, Test and Install
154153
cd /opencv/build && \
155154
make -j$(nproc) && \
156155
make install && \
157156
ldconfig && \
158157

159-
# cleaning
158+
# cleaning
160159
apt-get -y remove \
161160
unzip \
162161
cmake \

0 commit comments

Comments
 (0)