21 lines
590 B
Docker
21 lines
590 B
Docker
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 |