-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·33 lines (27 loc) · 1.14 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·33 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use tiryoh/ros-desktop-vnc:noetic as the base image
FROM tiryoh/ros-desktop-vnc:noetic
# Set Environment Variables
ENV DEBIAN_FRONTEND noninteractive
# Install required packages
RUN apt-get update && apt-get upgrade -y && \
apt-get install --no-install-recommends -y \
python3-pip \
ros-noetic-vision-msgs && \
apt-get clean && \
rm -r /var/lib/apt/lists/*
# Initialize catkin workspace
RUN mkdir -p ~/catkin_ws/src && \
/bin/bash -c "source /opt/ros/noetic/setup.bash ; cd ~/catkin_ws/src ; catkin_init_workspace" && \
/bin/bash -c "source /opt/ros/noetic/setup.bash ; cd ~/catkin_ws && catkin build" && \
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
# Install Git LFS
RUN apt-get update && \
apt-get install -y git-lfs && \
rm -rf /var/lib/apt/lists/* && \
git lfs install
# Clone repository and install using requirements.txt
RUN cd ~/catkin_ws/src && \
git clone -b noetic-devel https://github.com/Alpaca-zip/yolov8_segmentation_tracking_ros.git && \
python3 -m pip install -r yolov8_segmentation_tracking_ros/requirements.txt
# Build the ROS package
RUN cd ~/catkin_ws && catkin build