Skip to content

Commit 05ffad7

Browse files
committed
minor fix to Dockerfile
1 parent 73918ab commit 05ffad7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ COPY . /root/ros2_ws/src
99
# Install dependencies
1010
RUN apt-get update
1111
RUN apt-get -y --quiet --no-install-recommends install python3-pip
12-
RUN rosdep update --include-eol-distros && rosdep install --from-paths src --ignore-src -r -y
1312
RUN if [ "$ROS_DISTRO" = "jazzy" ] || [ "$ROS_DISTRO" = "rolling" ]; then \
1413
pip3 install -r src/requirements.txt --break-system-packages; \
1514
else \
@@ -20,6 +19,8 @@ WORKDIR /root/ros2_ws/src
2019
RUN git clone https://github.com/mgonzs13/audio_common.git
2120

2221
WORKDIR /root/ros2_ws
22+
RUN source /opt/ros/${ROS_DISTRO}/setup.bash
23+
RUN rosdep update --include-eol-distros && rosdep install --from-paths src --ignore-src -r -y
2324
RUN rosdep install --from-paths src --ignore-src -r -y
2425

2526
# Install CUDA nvcc
@@ -35,7 +36,7 @@ RUN if [ "$USE_CUDA" = "1" ]; then \
3536
echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> ~/.bashrc; \
3637
fi
3738

38-
# Colcon the ws
39+
# Build the ws with colcon
3940
FROM deps AS builder
4041
ARG CMAKE_BUILD_TYPE=Release
4142

0 commit comments

Comments
 (0)