Dockerfile.gsd_ds 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # 构造gsd_ds基础镜像
  2. FROM nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples
  3. MAINTAINER <lishengyin, lishengyin@sz-sunwin.com>
  4. ARG with_zltoolkit_code=yes
  5. ARG with_opencv_code=yes
  6. RUN apt-get update && apt-get upgrade -y && \
  7. apt-get install -y --no-install-recommends apt-utils \
  8. libmysqlclient-dev \
  9. cmake \
  10. make \
  11. build-essential \
  12. libssl-dev \
  13. uuid-dev \
  14. openssl \
  15. git \
  16. gcc \
  17. g++ \
  18. 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 \
  19. libgstrtspserver-1.0-dev gstreamer1.0-rtsp
  20. RUN if [ "$with_zltoolkit_code" = "yes" ]; then \
  21. # apt remove ca-certificates && apt install -y --no-install-recommends apt-utils ca-certificates && \
  22. cd /root && git clone https://gitee.com/xia-chu/ZLToolKit.git ZLToolKit && \
  23. cd /root/ZLToolKit && \
  24. sed -i 's/sudo//g' build_for_linux.sh && ./build_for_linux.sh && \
  25. rm -rf /root/ZLToolKit; \
  26. fi
  27. RUN if [ "$with_opencv_code" = "yes" ]; then \
  28. cd /root && git clone -b 4.1.1 https://gitee.com/flay/opencv.git && \
  29. cd /root/opencv && mkdir build && cd /root/opencv/build && \
  30. cmake .. && make -j4 && make install && \
  31. rm -rf /root/opencv; \
  32. fi
  33. WORKDIR /workspace