diff --git a/docker/Dockerfile.ros2 b/docker/Dockerfile.ros2 index 8576e3d..b9d25d4 100644 --- a/docker/Dockerfile.ros2 +++ b/docker/Dockerfile.ros2 @@ -87,10 +87,10 @@ RUN cd $CATKIN_WS \ && rosdep fix-permissions \ && rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_VERSION} -# Catkin Build -RUN catkin build - -# Source Catkin Setup -RUN source "$CATKIN_WS/devel/setup.bash" +# Always source colcon_setup.sh when launching bash +COPY ../scripts/colcon_setup.sh /usr/local/bin/colcon_setup.sh +RUN echo "source /usr/local/bin/colcon_setup.sh" >> /root/.bashrc +RUN chmod +x /usr/local/bin/colcon_setup.sh +ENTRYPOINT ["/usr/local/bin/colcon_setup.sh"] CMD ["bash"]