Added initial sketch of dockerfile support

This commit is contained in:
2025-02-07 18:31:57 +01:00
parent 6df52b7c81
commit 9b051d2103
2 changed files with 35 additions and 0 deletions

18
Dockerfile.env Normal file
View File

@ -0,0 +1,18 @@
FROM arm64v8/ros:jazzy as magrob.env
RUN mkdir -p /ros_ws/src
WORKDIR /ros_ws/src
RUN --mount=type=bind,source=./,target=/ros_ws/src/ \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
. /opt/ros/jazzy/setup.sh && \
apt update && \
apt-get install -y ros-jazzy-hardware-interface && \
rosdep install -i --from-paths . -y
RUN cat <<EOF >> /root/.bashrc
source /opt/ros/jazzy/setup.bash
EOF
CMD ["sleep", "infinity"]