Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. ## To build the docker container, run: $ sudo docker build -t ai-tao:1.0 .
  3. ## To run: $ sudo docker run --rm -it --gpus=all -p 8888:8888 -p 8000:8000 ai-tao:1.0
  4. # Finally, open http://127.0.0.1:8888/
  5. # Select Base Image
  6. FROM nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3
  7. # Update the repo
  8. RUN apt-get update -y
  9. # Install required dependencies
  10. RUN apt-get install -y git nvidia-modprobe
  11. #RUN pip3 install --no-cache-dir jupyter
  12. RUN pip3 install jupyterlab
  13. # Install required python packages
  14. RUN pip3 install ipywidgets
  15. RUN pip3 install gdown
  16. # TO COPY the data
  17. COPY English/ /workspace/tlt-experiments
  18. # To Download VOC dataaset
  19. #RUN mkdir /workspace/tlt-experiments/data
  20. #RUN curl http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar -o ~/English/tao_experiments/data/VOCtrainval_11-May-2012.tar
  21. RUN python3 /workspace/tlt-experiments/source_code/dataset.py
  22. ## Uncomment this line to run Jupyter notebook by default
  23. #CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/workspace/tlt-experiments