-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM nvcr.io/nvidia/l4t-ml:r32.5.0-py3
# Install basic dependencies
RUN apt update
RUN apt install -y cmake
RUN apt install -y libprotobuf-dev protobuf-compiler
# Intall detectron2
RUN pip3 install pyyaml==5.1
RUN pip3 install 'git+https://github.com/facebookresearch/detectron2.git'
# Install onnx and tensorrt backend
RUN pip3 install onnx==1.6.0
RUN pip3 install 'git+https://github.com/onnx/onnx-tensorrt.git'
RUN git clone https://github.com/NVIDIA-AI-IOT/torch2trt
RUN cd torch2trt && python3 setup.py install --plugins
# Install jupyterlab
RUN apt install -y curl libffi-dev
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt install -y nodejs
RUN pip3 install --upgrade jupyterlab
RUN jupyter lab build
# Install jetcam
RUN pip3 install 'git+https://github.com/NVIDIA-AI-IOT/jetcam.git'
# Install jupyter widgets
RUN pip3 install ipywidgets
RUN jupyter nbextension enable --py widgetsnbextension
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
# Paths to mount data
VOLUME [/usr/lib/python3.6/dist-packages/tensorrt]
VOLUME [/usr/src/tensorrt]
VOLUME [/tmp/argus_socket]
VOLUME [/tmp/.X11-unix/]
VOLUME [/data]
WORKDIR /data
#ENTRYPOINT jupyter lab --allow-root --config /jupyter_conf.py