Skip to content

Commit

Permalink
fixing pip3 install in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Dec 27, 2024
1 parent 63e5d17 commit 46f590c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ SHELL ["/bin/bash", "-c"]
COPY . /root/ros2_ws/src

# Install dependencies
RUN apt-get update \
&& apt-get -y --quiet --no-install-recommends install \
python3 \
python3-pip
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 pip3 install -r requirements.txt
RUN if [ "$ROS_DISTRO" = "jazzy" ] || [ "$ROS_DISTRO" = "rolling" ]; then \
pip3 install -r src/requirements.txt --break-system-packages; \
else \
pip3 install -r src/requirements.txt; \
fi

WORKDIR /root/ros2_ws/src
RUN git clone https://github.com/mgonzs13/audio_common.git
Expand Down

0 comments on commit 46f590c

Please sign in to comment.