Added clean to dockerfile

This commit is contained in:
Alex Davies 2024-06-05 08:40:30 -03:00
parent 2534b048ca
commit 0b11bd7208
1 changed files with 8 additions and 0 deletions

View File

@ -4,9 +4,17 @@ COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /models /
COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /worlds /usr/share/gazebo-11/worlds/ COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /worlds /usr/share/gazebo-11/worlds/
COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /plugins /usr/lib/x86_64-linux-gnu/gazebo-11/plugins COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /plugins /usr/lib/x86_64-linux-gnu/gazebo-11/plugins
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN sh -c 'curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -'
RUN apt-get clean
RUN apt-get update && apt-get upgrade --yes RUN apt-get update && apt-get upgrade --yes
RUN apt-get install --yes gz-garden RUN apt-get install --yes gz-garden
RUN apt-get install --yes ros-noetic-desktop
#Install ROS
WORKDIR /opt/spiri-sdk WORKDIR /opt/spiri-sdk