-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
18 lines (18 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM dustynv/nanoowl:r36.2.0
# upgrade pillow to fix "UnidentifiedImageError"
RUN pip install pillow --upgrade
RUN apt-get update && apt-get install -y sudo apt-utils
# install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | RUSTUP_PERMIT_COPY_RENAME=1 sh -s -- -y
RUN pip install rerun-sdk
RUN cd /opt/nanoowl/ && git pull
RUN cd /opt && git clone https://github.com/NVIDIA-AI-IOT/nanosam && cd nanosam && python3 setup.py develop --user
RUN wget https://nodejs.org/dist/v20.12.0/node-v20.12.0-linux-arm64.tar.xz && tar -xJvf node-v20.12.0-linux-arm64.tar.xz && mv node-v20.12.0-linux-arm64 /usr/local/lib/node
RUN sh -c 'echo "export NODEJS_HOME=/usr/local/lib/node" >> /root/.bashrc' && sh -c 'echo "export PATH=/usr/local/lib/node/bin:$PATH" >> /root/.bashrc'
COPY bicycle-app/requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
RUN git clone --recursive --depth=1 https://github.com/dusty-nv/jetson-inference /jetson-inference && cd /jetson-inference && mkdir build
COPY CMakeLists.txt /jetson-inference/CMakeLists.txt
RUN cd /jetson-inference/build && cmake ../
# this doesn't run for some reason during build process but works within the container ...
#RUN cd /jetson-inference/build && make -j6 && make install && ldconfig