|
@@ -2,22 +2,28 @@ FROM ros:humble-ros-base
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
python3-pip \
|
|
|
- python3-dev \
|
|
|
- build-essential
|
|
|
+ # python3-dev \
|
|
|
+ # build-essential \
|
|
|
+ && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
|
-RUN pip3 install nicegui pyquaternion
|
|
|
+COPY requirements.txt requirements.txt
|
|
|
+RUN pip3 install -r requirements.txt
|
|
|
|
|
|
-ADD ros2_ws ros2_ws/
|
|
|
+ADD ros2_ws /ros2_ws
|
|
|
|
|
|
-RUN cd ros2_ws && \
|
|
|
- source /opt/ros/humble/setup.bash && \
|
|
|
+WORKDIR /ros2_ws
|
|
|
+
|
|
|
+RUN source /opt/ros/humble/setup.bash && \
|
|
|
colcon build --symlink-install
|
|
|
|
|
|
COPY ros_entrypoint.sh /
|
|
|
|
|
|
+
|
|
|
EXPOSE 8080
|
|
|
+
|
|
|
ENTRYPOINT ["/ros_entrypoint.sh"]
|
|
|
-CMD ["bash"]
|
|
|
+
|
|
|
+CMD ros2 launch gui main_launch.py
|
|
|
|