1- FROM arm64v8/ubuntu:22 .04
1+ FROM arm64v8/ubuntu:24 .04
22
33SHELL ["/bin/bash" , "-c" ]
44
55ENV DEBIAN_FRONTEND=noninteractive
66
7- ARG PYTHON_VERSION="3.10 "
7+ ARG PYTHON_VERSION="3.12 "
88ARG PYTORCH_VERSION="2.5.1"
99
1010ENV PYTHON_VERSION=${PYTHON_VERSION}
@@ -23,6 +23,7 @@ RUN apt-get -y update; \
2323 gpg \
2424 curl \
2525 gdb \
26+ libbz2-dev \
2627 software-properties-common \
2728 ca-certificates \
2829 lsb-release \
@@ -33,13 +34,6 @@ RUN apt-get -y update; \
3334 python${PYTHON_VERSION}-venv \
3435 python-is-python3
3536
36- # Add repo for installing latest version of cmake
37- RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null; \
38- echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null; \
39- apt-get update; \
40- rm /usr/share/keyrings/kitware-archive-keyring.gpg
41- RUN apt install -y kitware-archive-keyring
42-
4337RUN apt-get -y install \
4438 cmake \
4539 libgmp-dev \
@@ -49,10 +43,11 @@ RUN apt-get -y install \
4943 libgeos-dev \
5044 libyaml-cpp-dev \
5145 vim \
46+ neovim \
5247 tmux \
5348 ffmpeg \
49+ unzip \
5450 gnuplot-nox \
55- unzip \
5651 ninja-build libpng-dev libjpeg-dev libopencv-dev python3-opencv
5752
5853RUN add-apt-repository universe
@@ -61,14 +56,15 @@ RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o
6156RUN 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
6257
6358RUN apt-get -y update && apt-get -y upgrade
64- RUN apt -y install ros-humble -desktop ros-dev-tools python3-colcon-common-extensions python3-vcstool python3-pip python3-argcomplete python3-rosdep python3-rosinstall-generator python3-rosinstall build-essential ros-humble-rmw-cyclonedds-cpp ros-humble-eigen3-cmake-module
59+ RUN apt-get -y install ros-jazzy -desktop ros-dev-tools python3-colcon-common-extensions python3-vcstool python3-pip python3-argcomplete python3-rosdep python3-rosinstall-generator build-essential
6560
6661# Remove cache to reduce image size
6762RUN rm -rf /var/lib/apt/lists/*; \
6863 rm -f /var/cache/apt/archives/*.deb; \
6964 rm -f /var/cache/apt/archives/parital/*.deb; \
7065 rm -f /var/cache/apt/*.bin
7166
67+ RUN mkdir -p /opt
7268RUN mkdir download; \
7369 wget https://github.com/AgarwalSaurav/libtorch_arm64/releases/download/v${PYTORCH_VERSION}/libtorch-cxx11-abi-shared-with-deps-${PYTORCH_VERSION}.zip -O download/libtorch.zip; \
7470 unzip download/libtorch.zip -d /opt/; \
@@ -79,10 +75,10 @@ ENV Torch_DIR=/opt/libtorch/share/cmake/
7975
8076COPY requirements_cpu.txt /opt/requirements.txt
8177RUN python${PYTHON_VERSION} -m venv /opt/venv
82- RUN /opt/venv/bin/pip install --no-cache-dir wheel
78+ RUN /opt/venv/bin/pip install --no-cache-dir wheel setuptools==68.1.2
8379RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
84- RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark
80+ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg lark
8581ENV VENV_PATH=/opt/venv
8682
87- COPY .ros.humble .bashrc /root/.bashrc
83+ COPY .ros.jazzy .bashrc /root/.bashrc
8884RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc
0 commit comments