# 构造gsd_ds基础镜像 FROM nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples MAINTAINER ARG with_zltoolkit_code=yes ARG with_opencv_code=yes RUN apt-get update && apt-get upgrade -y && \ apt-get install -y --no-install-recommends apt-utils \ libmysqlclient-dev \ cmake \ make \ build-essential \ libssl-dev \ uuid-dev \ openssl \ git \ gcc \ g++ \ libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio \ libgstrtspserver-1.0-dev gstreamer1.0-rtsp RUN if [ "$with_zltoolkit_code" = "yes" ]; then \ # apt remove ca-certificates && apt install -y --no-install-recommends apt-utils ca-certificates && \ cd /root && git clone https://gitee.com/xia-chu/ZLToolKit.git ZLToolKit && \ cd /root/ZLToolKit && \ sed -i 's/sudo//g' build_for_linux.sh && ./build_for_linux.sh && \ rm -rf /root/ZLToolKit; \ fi RUN if [ "$with_opencv_code" = "yes" ]; then \ cd /root && git clone -b 4.1.1 https://gitee.com/flay/opencv.git && \ cd /root/opencv && mkdir build && cd /root/opencv/build && \ cmake .. && make -j4 && make install && \ rm -rf /root/opencv; \ fi WORKDIR /workspace