Add Dockerfile
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
FROM arm64v8/ros:jazzy AS dev
|
||||||
|
RUN . /opt/ros/jazzy/setup.sh && sudo apt update
|
||||||
|
RUN mkdir -p /ros_ws/src/mg_navigation && \
|
||||||
|
mkdir -p /ros_ws/src/mg_msgs
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /ros_ws/src
|
||||||
|
COPY mg_navigation/package.xml mg_navigation/
|
||||||
|
COPY mg_msgs/package.xml mg_msgs/
|
||||||
|
|
||||||
|
RUN . /opt/ros/jazzy/setup.sh && rosdep install --from-paths ./ -i -y && \
|
||||||
|
rm -rf mg_navigation && \
|
||||||
|
rm -rf mg_msgs
|
||||||
|
|
||||||
|
FROM dev AS build
|
||||||
|
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
|
RUN . /opt/ros/jazzy/setup.sh && colcon build --symlink-install --packages-select \
|
||||||
|
mg_navigation \
|
||||||
|
mg_msgs && \
|
||||||
|
chmod +x entrypoint.sh
|
||||||
|
|
||||||
|
CMD ["./entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user