23 lines
620 B
Docker
23 lines
620 B
Docker
|
ARG ROS_DISTRO=humble
|
||
|
FROM ros:$ROS_DISTRO
|
||
|
|
||
|
SHELL ["/bin/bash", "-c"]
|
||
|
RUN apt-get update && \
|
||
|
# apt-get install -y \
|
||
|
# && \
|
||
|
apt-get autoremove -y && \
|
||
|
apt-get clean && \
|
||
|
rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
COPY ./src/AriaCoda /usr/local/Aria
|
||
|
RUN cd /usr/local/Aria && make -j$(nproc)
|
||
|
|
||
|
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
|
||
|
COPY ros_entrypoint.sh /
|
||
|
ENTRYPOINT ["../ros_entrypoint.sh"]
|
||
|
RUN chmod +x /ros_entrypoint.sh
|
||
|
|
||
|
WORKDIR /app
|
||
|
COPY src/ros2aria /app/src/ros2aria
|
||
|
COPY src/ros2aria_msgs /app/src/ros2aria_msgs
|
||
|
RUN cd /app && source /opt/ros/$ROS_DISTRO/setup.bash && colcon build
|