Skip to content

Commit

Permalink
minor fix to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Dec 28, 2024
1 parent 73918ab commit 05ffad7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ COPY . /root/ros2_ws/src
# Install dependencies
RUN apt-get update
RUN apt-get -y --quiet --no-install-recommends install python3-pip
RUN rosdep update --include-eol-distros && rosdep install --from-paths src --ignore-src -r -y
RUN if [ "$ROS_DISTRO" = "jazzy" ] || [ "$ROS_DISTRO" = "rolling" ]; then \
pip3 install -r src/requirements.txt --break-system-packages; \
else \
Expand All @@ -20,6 +19,8 @@ WORKDIR /root/ros2_ws/src
RUN git clone https://github.com/mgonzs13/audio_common.git

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

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

# Colcon the ws
# Build the ws with colcon
FROM deps AS builder
ARG CMAKE_BUILD_TYPE=Release

Expand Down

0 comments on commit 05ffad7

Please sign in to comment.