Dockerfile.infer 900 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # 配置miva推理镜像
  2. # Use L4T base docker
  3. FROM nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples
  4. # install基础依赖
  5. RUN apt-get update && \
  6. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgstrtspserver-1.0-dev libx11-dev \
  7. build-essential \
  8. cmake \
  9. libmysqlclient-dev \
  10. libssl-dev
  11. # 拷贝文件
  12. COPY ./3rdparty/ZLToolKit.tar.gz /root
  13. COPY ./3rdparty/opencv.tar.gz /root
  14. # install zltoolkit
  15. RUN cd /root/ && tar -zxvf ZLToolKit.tar.gz
  16. RUN cp -rf /root/ZLToolKit/lib/* /usr/local/lib/
  17. RUN cp -rf /root/ZLToolKit/include/* /usr/local/include/
  18. # install opencv
  19. RUN cd /root/ && tar -zxvf opencv.tar.gz
  20. RUN cp -rf /root/opencv/lib/* /usr/local/lib/
  21. RUN cp -rf /root/opencv/include/* /usr/local/include/
  22. # 清除缓冲
  23. # RUN rm ${HOME}/.cache/gstreamer-1.0/registry.*