Skip to content

Commit 5412dfe

Browse files
committed
delete unnecessary installation and change workspace name
1 parent 45d1967 commit 5412dfe

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ COPY . .
88
# Install additional dependencies
99
RUN apt-get update \
1010
&& apt-get -y --quiet --no-install-recommends install \
11-
gcc \
12-
git \
13-
libxml2-dev \
14-
libxslt-dev \
15-
python3 \
16-
ros-humble-ament-cmake-clang-format\
1711
ros-humble-rviz2
1812

1913
# Set environment variables
@@ -26,7 +20,7 @@ RUN rosdep install --from-paths src --ignore-src -y
2620
RUN . /opt/ros/humble/setup.sh && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to grid_map_geo
2721

2822
# Source the ROS2 setup file
29-
RUN echo "source /ros2_workspace/install/setup.bash" >> ~/.bashrc
23+
RUN echo "source /root/ros2_ws/install/setup.bash" >> ~/.bashrc
3024
# Expose the default ROS 2 communication ports
3125
EXPOSE 11311
3226

0 commit comments

Comments
 (0)