123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # 配置miva推理镜像
- # Use L4T base docker
- #FROM nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples
- FROM nvcr.io/nvidia/deepstream-l4t:6.0-samples
- ARG with_zltoolkit_code=yes
- ARG with_opencv_code=yes
- # install基础依赖
- RUN apt-get update && \
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgstrtspserver-1.0-dev libx11-dev \
- build-essential \
- cmake \
- libmysqlclient-dev \
- libssl-dev
- COPY ./3rdparty/ZLToolKit.tar.gz /root
- # install zltoolkit
- RUN cd /root/ && tar -zxvf ZLToolKit.tar.gz
- RUN cp -rf /root/ZLToolKit/lib/* /usr/local/lib/
- RUN cp -rf /root/ZLToolKit/include/* /usr/local/include/
- #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
|