-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (20 loc) · 886 Bytes
/
Dockerfile
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
FROM althack/ros2:humble-cuda-dev
# change to bash
SHELL ["/bin/bash", "-c"]
# Set the working directory to /colcon_ws
WORKDIR /colcon_ws
# Create the src directory
RUN mkdir src
# Copy the source code to the src directory
COPY . /colcon_ws/src
# Install any dependencies required to build the code
RUN apt update
RUN source /opt/ros/humble/setup.bash
RUN rosdep update
RUN rosdep install --from-paths src -r -y
RUN apt install ros-humble-ament-cmake
RUN source /opt/ros/humble/setup.bash; colcon build --packages-skip yolop multi_sensor_fusion
# Set the default command to run the launch file
# CMD ["source", "install" "ros2", "launch", "sensor_fusion_perception", "opencv_publisher.launch"]
# CMD source /opt/ros/humble/setup.bash && source install/setup.bash && ros2 launch sensor_fusion_perception opencv_publisher.launch.py
CMD ["/bin/bash", "/colcon_ws/src/entrypoint.sh"]