16 lines
539 B
Docker
16 lines
539 B
Docker
FROM ros:noetic-ros-core
|
|
|
|
RUN apt-get update -y && apt-get install ros-noetic-tf python3-serial python3-catkin-tools build-essential -y \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
SHELL ["/bin/bash", "--login", "-c"]
|
|
WORKDIR /ws
|
|
|
|
COPY ./src /ws/src
|
|
RUN source /opt/ros/noetic/setup.bash && catkin_make && \
|
|
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc && \
|
|
echo "source /ws/devel/setup.bash" >> ~/.bashrc
|
|
ENV ROS_MASTER_URI=http://10.104.16.29:11311/
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|