19 lines
530 B
Plaintext
Executable File
19 lines
530 B
Plaintext
Executable File
FROM ros:melodic-ros-core
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y build-essential python-rosdep cmake \
|
|
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
|
|
|
|
RUN rosdep init && rosdep update
|
|
|
|
# Create ROS workspace
|
|
COPY . /ws/src/rospy_message_converter
|
|
WORKDIR /ws
|
|
|
|
# Install the package and its dependencies
|
|
RUN rosdep install --from-paths src --ignore-src --rosdistro melodic -y
|
|
|
|
# Set up the development environment
|
|
RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && \
|
|
catkin_make install"
|