Dockerfile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Select Base Image
  2. FROM nvcr.io/nvidia/deepstream:5.0.1-20.09-triton
  3. # NVIDIA Nsight Systems 2020.2.1
  4. RUN apt-get update -y && \
  5. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  6. apt-transport-https \
  7. ca-certificates \
  8. gnupg \
  9. wget && \
  10. rm -rf /var/lib/apt/lists/*
  11. RUN wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add - && \
  12. echo "deb https://developer.download.nvidia.com/devtools/repo-deb/x86_64/ /" >> /etc/apt/sources.list.d/nsight.list && \
  13. apt-get update -y && \
  14. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  15. nsight-systems-2020.2.1 && \
  16. rm -rf /var/lib/apt/lists/*
  17. # Update the repo
  18. RUN apt-get update
  19. # Install required dependencies
  20. RUN apt-get install ffmpeg python3-gi python3-dev python3-pip cmake unzip -y
  21. # Install pybind11
  22. RUN pip3 install pybind11
  23. # Install required python packages
  24. WORKDIR /opt/nvidia/deepstream/deepstream/lib
  25. RUN python3 setup.py install
  26. WORKDIR /opt/nvidia/deepstream/deepstream-5.0
  27. RUN pip3 install jupyterlab gdown
  28. COPY English /opt/nvidia/deepstream/deepstream-5.0
  29. WORKDIR /opt/nvidia/deepstream/deepstream-5.0/python/source_code/dataset/
  30. RUN python3 /opt/nvidia/deepstream/deepstream-5.0/python/source_code/dataset/download_dataset.py
  31. RUN ls -l
  32. #RUN mv datasetlihvsi4dtmp deepstream_dataset.zip
  33. RUN unzip deepstream_dataset.zip
  34. WORKDIR /opt/nvidia/deepstream/deepstream-5.0
  35. ## Uncomment this line to run Jupyter notebook by default
  36. CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8889 --NotebookApp.token="" --notebook-dir=/opt/nvidia/deepstream/deepstream-5.0/python