File tree Expand file tree Collapse file tree 7 files changed +6
-9
lines changed
Expand file tree Collapse file tree 7 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ RUN mkdir download; \
7171 unzip download/libtorch.zip -d /opt/; \
7272 rm -r download
7373
74+ ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7475ENV Torch_DIR=/opt/libtorch/share/cmake/
7576
7677COPY requirements_cpu.txt /opt/requirements.txt
@@ -80,4 +81,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
8081ENV VENV_PATH=/opt/venv
8182
8283COPY .bashrc /root/.bashrc
83- RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ RUN mkdir download; \
7676 unzip download/libtorch.zip -d /opt/; \
7777 rm -r download
7878
79- RUN echo ' LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /etc/environment
79+ ENV LD_LIBRARY_PATH=" /usr/local/lib:/opt/libtorch/lib"
8080ENV Torch_DIR=/opt/libtorch/share/cmake/
8181
8282COPY requirements_cpu.txt /opt/requirements.txt
@@ -87,4 +87,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark
8787ENV VENV_PATH=/opt/venv
8888
8989COPY .ros.humble.bashrc /root/.bashrc
90- RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ RUN mkdir download; \
7575 unzip download/libtorch.zip -d /opt/; \
7676 rm -r download
7777
78+ ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7879ENV Torch_DIR=/opt/libtorch/share/cmake/
7980
8081COPY requirements.txt /opt/requirements.txt
@@ -85,4 +86,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark tomli
8586ENV VENV_PATH=/opt/venv
8687
8788COPY .ros.humble.bashrc /root/.bashrc
88- RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ RUN mkdir download; \
7171 unzip download/libtorch.zip -d /opt/; \
7272 rm -r download
7373
74+ ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7475ENV Torch_DIR=/opt/libtorch/share/cmake/
7576
7677COPY requirements.txt /opt/requirements.txt
@@ -80,4 +81,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
8081ENV VENV_PATH=/opt/venv
8182
8283COPY .bashrc /root/.bashrc
83- RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ RUN mkdir download; \
7676 unzip download/libtorch.zip -d /opt/; \
7777 rm -r download
7878
79+ ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7980ENV Torch_DIR=/opt/libtorch/share/cmake/
8081
8182COPY requirements_cpu.txt /opt/requirements.txt
@@ -86,4 +87,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark tomli
8687ENV VENV_PATH=/opt/venv
8788
8889COPY .ros.humble.bashrc /root/.bashrc
89- RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
Original file line number Diff line number Diff line change @@ -72,4 +72,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
7272ENV VENV_PATH=/opt/venv
7373
7474COPY .bashrc /root/.bashrc
75- RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ RUN mkdir download; \
7070 unzip download/libtorch.zip -d /opt/; \
7171 rm -r download
7272
73- RUN echo ' LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /etc/environment
73+ ENV LD_LIBRARY_PATH=" /usr/local/lib:/opt/libtorch/lib"
7474ENV Torch_DIR=/opt/libtorch/share/cmake/
7575
7676COPY requirements_cpu.txt /opt/requirements.txt
@@ -81,4 +81,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg lark
8181ENV VENV_PATH=/opt/venv
8282
8383COPY .ros.jazzy.bashrc /root/.bashrc
84- RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
You can’t perform that action at this time.
0 commit comments