forked from Dan4ick/Lidar_Muxa
28 lines
818 B
Text
28 lines
818 B
Text
# ROS 2 Humble integration image for FlyGuard.
|
|
FROM ros:humble-ros-base-jammy
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
WORKDIR /app
|
|
|
|
# ROS message packages used directly by flyguard_ros2_node.py.
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
python3-pip \
|
|
ros-humble-sensor-msgs-py \
|
|
ros-humble-vision-msgs \
|
|
ros-humble-visualization-msgs \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt ./
|
|
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY flyguard ./flyguard
|
|
COPY artifacts ./artifacts
|
|
|
|
# Parameters and ROS remappings are passed to `docker run` after `--ros-args`.
|
|
ENTRYPOINT ["/ros_entrypoint.sh"]
|
|
CMD ["python3", "flyguard/flyguard_ros2_node.py"]
|