Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ RUN if [ "$USE_NVIDIA" = "true" ]; then \
# Stage 5: Minimal Runtime Base
############################
FROM ros2-base AS runtime
ARG USE_NVIDIA=true
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

WORKDIR /
Expand Down Expand Up @@ -206,6 +207,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
gstreamer1.0-nice \
&& rm -rf /var/lib/apt/lists/*

RUN if [ "$USE_NVIDIA" = "true" ]; then \
apt-get update && apt-get install -y --no-install-recommends \
libnvinfer10 libnvinfer-plugin10 libnvonnxparsers10 \
&& rm -rf /var/lib/apt/lists/*; \
else \
echo "Skipping NVIDIA dependencies installation"; \
fi

RUN source /opt/ros/$ROS_DISTRO/setup.bash \
&& rosdep init \
&& rosdep update
Expand Down
1 change: 0 additions & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ ARG CUDA_MINOR=3
RUN apt-get update && apt-get install -y --no-install-recommends \
cuda-compiler-${CUDA_MAJOR}-${CUDA_MINOR} \
cuda-cudart-dev-${CUDA_MAJOR}-${CUDA_MINOR} \
libnvinfer10 libnvinfer-plugin10 libnvonnxparsers10 \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -f zed && usermod -aG zed ubuntu
RUN chmod -R a+r /usr/local/lib/python3.12/dist-packages/
Expand Down
Loading