-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (20 loc) · 826 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG ROS_DISTRO=humble
FROM husarnet/ros:${ROS_DISTRO}-ros-core
WORKDIR /ros2_ws
COPY . src/panther_crsf_teleop
RUN apt-get update --fix-missing && \
apt upgrade -y && \
apt-get install -y ros-dev-tools && \
rm -rf /etc/ros/rosdep/sources.list.d/20-default.list && \
rosdep init && \
rosdep update --rosdistro $ROS_DISTRO && \
rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y && \
source /opt/ros/$ROS_DISTRO/setup.bash && \
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release && \
rm -rf build log && \
export SUDO_FORCE_REMOVE=yes && \
apt-get remove -y ros-dev-tools && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
CMD ["ros2", "run", "panther_crsf_teleop", "panther_crsf_teleop", "--ros-args", "--remap __ns:=/panther"]