dockerfile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. ARG with_drogon_code=yes
  7. RUN apt-get update && apt-get upgrade -y && \
  8. apt-get install -y --no-install-recommends apt-utils \
  9. libmysqlclient-dev \
  10. cmake \
  11. make \
  12. build-essential \
  13. libssl-dev \
  14. uuid-dev \
  15. openssl \
  16. git \
  17. gcc \
  18. g++ \
  19. libjsoncpp-dev \
  20. libboost-all-dev \
  21. 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 \
  22. libgstrtspserver-1.0-dev gstreamer1.0-rtsp
  23. RUN if [ "$with_zltoolkit_code" = "yes" ]; then \
  24. # apt remove ca-certificates && apt install -y --no-install-recommends apt-utils ca-certificates && \
  25. cd /root && git clone https://gitee.com/xia-chu/ZLToolKit.git ZLToolKit && \
  26. cd /root/ZLToolKit && sed -i 's/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g' CMakeLists.txt && \
  27. sed -i 's/sudo//g' build_for_linux.sh && ./build_for_linux.sh && \
  28. rm -rf /root/ZLToolKit; \
  29. fi
  30. RUN if [ "$with_opencv_code" = "yes" ]; then \
  31. cd /root && git clone -b 4.1.1 https://gitee.com/flay/opencv.git && \
  32. cd /root/opencv && mkdir build && cd /root/opencv/build && \
  33. cmake .. && make -j4 && make install && \
  34. rm -rf /root/opencv; \
  35. fi
  36. RUN if [ "$with_drogon_code" = "yes" ]; then \
  37. cd /root && git clone https://gitee.com/an-tao/drogon.git && \
  38. cd /root/drogon && git submodule update --init && mkdir build && cd /root/drogon/build && \
  39. cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4 && make install && \
  40. rm -rf /root/drogon; \
  41. fi
  42. WORKDIR /workspace