@@ -3,12 +3,12 @@ FROM nvcr.io/nvidia/isaac-sim:4.2.0
33ENV DEBIAN_FRONTEND=noninteractive
44
55# Add ROS 2 key
6- RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
7- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
6+ RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg \
7+ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
88
99# Install base system dependencies and development dependencies
10- RUN apt-get update && \
11- apt-get install --no-install-recommends -y \
10+ RUN apt-get update \
11+ && apt-get install --no-install-recommends -y \
1212 apt-utils \
1313 bash-completion \
1414 build-essential \
@@ -29,6 +29,7 @@ RUN apt-get update && \
2929 python3-rosdep \
3030 python3-setuptools \
3131 python3.10 \
32+ screen \
3233 software-properties-common \
3334 sudo \
3435 tmux && \
@@ -58,20 +59,23 @@ RUN pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com \
5859 nest-asyncio
5960
6061# Ensure cache folder is created, and symlink it to an easier to mount folder for persistance
61- RUN mkdir -p /usr/local/lib/python3.10/dist-packages/omni/cache && \
62- ln -s /usr/local/lib/python3.10/dist-packages/omni/cache /root/.isaac-sim-cache
62+ RUN mkdir -p /usr/local/lib/python3.10/dist-packages/omni/cache \
63+ && ln -s /usr/local/lib/python3.10/dist-packages/omni/cache /root/.isaac-sim-cache
6364
6465# Install ROS 2
65- RUN apt-get update && apt-get install --no-install-recommends -y \
66- ros-humble-desktop
66+ RUN apt-get update \
67+ && apt-get install --no-install-recommends -y \
68+ ros-humble-desktop \
69+ && rm -rf /var/lib/apt/lists/*
6770
6871# Install ros dependencies, updating the apt cache is necessary.
6972RUN --mount=type=bind,source=.,target=/tmp/ws \
70- rosdep init && \
71- apt-get update && \
72- . /opt/ros/humble/setup.sh && \
73- rosdep update && \
74- rosdep install --from-paths /tmp/ws --ignore-src -r -y
73+ rosdep init \
74+ && apt-get update \
75+ && . /opt/ros/humble/setup.sh \
76+ && rosdep update \
77+ && rosdep install --from-paths /tmp/ws --ignore-src -r -y \
78+ && rm -rf /var/lib/apt/lists/*
7579
7680WORKDIR /workspace
7781
0 commit comments