Dockerfile 1.7 KB

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