Skip to content

Commit 294d835

Browse files
committed
fixed error of cmake
1 parent 949add1 commit 294d835

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

commons/Dockerfile.base.py38-cuda11.1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ RUN git clone https://github.com/Mellanox/nv_peer_memory.git /tmp/nv_peer_memory
169169
dpkg-buildpackage -us -uc && \
170170
dpkg -i /tmp/nvidia-peer-memory_1.1-0_all.deb
171171

172+
RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-Linux-x86_64.sh \
173+
-q -O /tmp/cmake-install.sh && \
174+
chmod u+x /tmp/cmake-install.sh && \
175+
mkdir /usr/bin/cmake && \
176+
/tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake && \
177+
rm /tmp/cmake-install.sh
178+
172179
# Oracle client
173180
RUN mkdir -p /opt/oracle && \
174181
cd /opt/oracle && \
@@ -297,13 +304,6 @@ RUN ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
297304
apt-get clean && \
298305
rm -rf /var/lib/apt/lists/
299306

300-
RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-Linux-x86_64.sh \
301-
-q -O /tmp/cmake-install.sh && \
302-
chmod u+x /tmp/cmake-install.sh && \
303-
mkdir /usr/bin/cmake && \
304-
/tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake && \
305-
rm /tmp/cmake-install.sh
306-
307307
WORKDIR /tmp
308308
ENV OPENCV_VERSION="4.5.1"
309309
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \

0 commit comments

Comments
 (0)