ros2aria/Dockerfile.rosbridge

21 lines
590 B
Docker
Raw Normal View History

2023-07-12 10:55:59 +02:00
ARG ROS_DISTRO=humble
FROM husarnet/ros:$ROS_DISTRO-ros-core
SHELL ["/bin/bash", "-c"]
RUN apt update && \
apt upgrade -y && \
apt install -y \
ros-$ROS_DISTRO-rosbridge-suite \
ros-$ROS_DISTRO-tf2-msgs \
# custom msgs dependency
ros-$ROS_DISTRO-rosidl-typesupport-c \
&& \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=delicjusz/pioneer /ros2_ws /ros2_ws
RUN echo $(dpkg -s ros-$ROS_DISTRO-rosbridge-suite | grep 'Version' | sed -r 's/Version:\s([0-9]+.[0-9]+.[0-9]*).*/\1/g') >> /version.txt