@@ -14,7 +14,6 @@ FROM nvidia/cuda:${NVIDIA_CONTAINER_TAG} AS gpu-base
1414ARG ROS_DISTRO
1515ARG TENSORRT_RUNTIME_VERSION
1616ARG TENSORRT_CUDA_VERSION
17- ARG CUDNN_VERSION
1817
1918# Install ROS2 manually since we're not using the ros: base image
2019# Set non-interactive to avoid geographic area prompts
@@ -35,8 +34,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3534 && rm -rf /var/lib/apt/lists/*
3635ENV DEBIAN_FRONTEND=interactive
3736
38- # Install CUDA 12.2 runtime pieces plus TensorRT 10.14 runtime (no dev headers) so
39- # ONNX Runtime's TensorRT execution provider can resolve unversioned SONAMEs.
4037RUN curl -fsSL -o cuda-keyring_1.1-1_all.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \
4138 && dpkg -i cuda-keyring_1.1-1_all.deb \
4239 && apt-get update && apt-get install -y --no-install-recommends \
@@ -59,11 +56,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5956 openssh-client \
6057 git \
6158 curl \
62- ros-${ROS_DISTRO}-vision-msgs \
6359 && rm -rf /var/lib/apt/lists/*
6460
65- # Install pre-commit
66- RUN python3 -m pip install --no-cache-dir pre-commit==3.8.0
61+ # Install pre-commit (Ubuntu 24.04 ships PEP 668 managed Python, so allow system install)
62+ # RUN python3 -m pip install --no-cache-dir --break-system-packages pre-commit==3.8.0
6763
6864# Set working dir (matches VSCode workspace)
6965WORKDIR /deep_ros_ws
@@ -82,6 +78,7 @@ RUN --mount=type=bind,source=.,target=/tmp/src \
8278 | (grep 'apt-get install' || true) \
8379 | awk '{print $3}' \
8480 | sort > /tmp/colcon_install_list
81+
8582# ===============================================
8683# Install Dependencies
8784# ===============================================
@@ -125,6 +122,3 @@ RUN curl -fsSL https://claude.ai/install.sh | bash
125122
126123# Source ROS in user's bashrc
127124RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/$USERNAME/.bashrc
128-
129- # Ensure LD_LIBRARY_PATH includes CUDA/TensorRT for the user at runtime
130- RUN echo 'export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/cuda/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}' >> /home/$USERNAME/.bashrc
0 commit comments