Update my_example.Dockerfile

This commit is contained in:
bjoernellens1 2023-10-23 12:08:34 +02:00 committed by GitHub
parent de6a30cd8b
commit ec5394c0d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,8 @@ FROM osrf/ros:${ROS_DISTRO}-desktop as base
SHELL ["/bin/bash", "-c"] # change shell to bash because of better compatibility (standard shell would be sh otherwise). SHELL ["/bin/bash", "-c"] # change shell to bash because of better compatibility (standard shell would be sh otherwise).
# Create Colcon workspace with external dependencies # Create Colcon workspace with external dependencies
RUN mkdir -p /${UNDERLAY_WS}/src RUN mkdir -p ${UNDERLAY_WS}/src
WORKDIR /${UNDERLAY_WS}/src WORKDIR ${UNDERLAY_WS}/src
COPY my.repos . COPY my.repos .
RUN mv my.repos dependencies.repos RUN mv my.repos dependencies.repos
RUN vcs import < dependencies.repos RUN vcs import < dependencies.repos
@ -63,7 +63,7 @@ RUN source ${UNDERLAY_WS}/install/setup.bash \
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \ && rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN source /rmp_ws/install/setup.bash \ RUN source ${UNDERLAY_WS}/install/setup.bash \
&& colcon build --symlink-install && colcon build --symlink-install
# Set up the entrypoint # Set up the entrypoint